sun.security.x509.CertAndKeyGen和sun.security.pkcs.PKCS10 - 在JDK8中丢失。实施建议 [英] sun.security.x509.CertAndKeyGen and sun.security.pkcs.PKCS10 - missing in JDK8. Implementation suggestions

查看:291
本文介绍了sun.security.x509.CertAndKeyGen和sun.security.pkcs.PKCS10 - 在JDK8中丢失。实施建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JDK8中,类 sun.security.x509.CertAndKeyGen 不再存在。此外还缺少 sun.security.pkcs.PKCS10 。在JDK7中他们存在。什么可以替代这些类方法?

In JDK8 the class sun.security.x509.CertAndKeyGen does not exists anymore. Also sun.security.pkcs.PKCS10 is missing. In JDK7 they existed. What could be an alternatives to these classes methods?

推荐答案

我认为你在寻找:sun.security.tools.keytool.CertAndKeyGen

您可以在JRE库下的 rt.jar 中找到它。

You'll find it inside the rt.jar under the JRE libraries.

请记住,此课程不在 J2SE 之内,它可能仅适用于OpenJDK ,例如 GNU编译器不会有它。

Keep in mind this class is outside of J2SE, it's likely only available with OpenJDK, so for example the GNU Compiler won't have it.

这篇关于sun.security.x509.CertAndKeyGen和sun.security.pkcs.PKCS10 - 在JDK8中丢失。实施建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆