Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding CA Root certificates to cacerts

843811Jan 3 2007 — edited Jan 3 2007
Hello fellow developers.

An application of mine retreives html from external servers, some of them require ssl communications.

Now, since one of those clienst changed it's ssl certificate from a major authority to a less known (to me) authority called "UTN-USERFirst-Hardware".

This resulted in my application getting errors like:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found
Now, from what i've understood older versions of java could miss some CA root certificates in the cacerts file. What i found, and did, is export existing certificates from this authority out of my browser and import those certificates using keytool.

Now my application doesn't generate the SSLHandshakeException mentioned but it also doesn't work correctly anymore.

My question is, can i assume that the certificates are installed correctly when i don't get these SSLHandshakeException anymore?

And can i, to be sure of a correct cacerts file, copy a more recent cacerts file without problems?

Thank you in advanced for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2007
Added on Jan 3 2007
3 comments
687 views