0

how can i build cacerts automatically in java , instead of using the Jre/lib/security/cacerts because openJDK didn't contain the cacerts file.

daniel
  • 31
  • 1
  • 2

1 Answers1

1

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.

Community
  • 1
  • 1
home
  • 12,468
  • 5
  • 46
  • 54