문제

How would I go about adding a certificate as trusted to the current JVM instance without chaging or deleting existing trusted certificate entries? Additionally this must not modify any truststores on the filesystem and should only be valid in the current jvm instance.

Is there any way to do this?

도움이 되었습니까?

해결책

Copy the cacerts file that ships with Java.

Use either the keytool command or the InstallCert application to add certficates or CAs as needed.

Then use the -Djavax.net.ssl.trustStore="file path to new truststore" -Djavax.net.ssl.trustStorePassword="password for new truststore" VM arguments as needed when you start your application.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top