Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
How to chagne truststore property at runtime and let the changed to affect
posted 4 years ago
i am trying to change truststore property dynamically. the changes could not be affected at run time until i restart the application.
System.setProperty("javax.net.ssl.trustStore", "path1"); . . // code execution . . System.setProperty("javax.net.ssl.trustStore", "path1"); . . //code execution . .
is there any way to change truststore and let the changes
posted 2 years ago
When you change the javax.net.ssl.trustStore file, please add below code before you send https request:
sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, null, null);
I try it with jdk7 and the result is ok
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
Boost this thread!
How to implement certificate/security into web service client
unknown certificate error.
"javax.net.ssl.keyStore" system property inside a jar package
Totally lost, need help!
Basic auth + ssl on client side