Download trusted Certificate with InstallCert.java
19,745
- Do not change the jssecacerts file name. When you want add more than one trusted certificate you just copy jssecacert from the /jre/lib/security folder (if it is present) to different location .
- Then run Installcert.java file where jssecacerts file is present (InstallCert and jssecacerts are in same folder).
- Then that jssecacerts file put into the /jre/lib/security folder.
Note : You can add more than one trusted certificate in same jssecacerts file Hope it will work .
Author by
youssef Liouene
Updated on June 04, 2022Comments
-
youssef Liouene almost 2 years
I'm trying to add Trusted certificate for many web services deployed in localhost. I find this article: http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/ when you follow the steps in this article, the result will be “jssecacerts” file. In my case I have many servers:
- server 1: http://localhost:8181
- server 2: http://localhost:8282
So, I tried to generate 2 differents files called “jssecacerts_8181” and “jssecacerts_8282”. But this one doesn't work.
Does the name of the generated file must be "jssecacerts"? How can we add more than one trusted certificate?