java – sun. security. x509. Certandkeygen and sun security. pkcs. Pkcs10 – missing in jdk8 Implementation recommendations

In jdk8, the class sun security. x509. Certandkeygen no longer exists Sun. Com is still missing security. pkcs. PKCS10. They exist in JDK 7 What can replace these class methods?

Solution

I think you are looking for: sun security. tools. keytool. CertAndKeyGen

You can find it in rt.jar under the JRE library

Remember, this class is outside J2SE, and it may only be applicable to openjdk, so for example, GNU compiler will not have it

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>