简体   繁体   中英

cacerts issue in JAVA and OPEN JDK 6

我如何在java中自动构建cacerts而不是使用Jre / lib / security / cacerts,因为openJDK不包含cacerts文件。

You can create your own keystore using the keytool . Then you must import all CAs (Certificate Authorities) you need and either place the keystore in <JRE>/lib/security or explicitly set it using a system property. See this post for details.

Of course, you could reuse an existing keystore available in other JDKs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM