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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

accessing keystore without password

843811Dec 3 2002 — edited Dec 3 2002
I've written a little program, that retrieves a ssl-secured website from my local webserver.
To avoid the "untrusted certificate" exception I added the following line:

'System.setProperty("javax.net.ssl.trustStore", "./Source/cacerts.jks");'

That works fine, but I'm wondering that Java knows the password - or is it not needed?

When I add the line 'System.setProperty("javax.net.ssl.trustStorePassword", "<right_password>");'it works too, but giving the wrong password leads to the exception 'No X509TrustManager implementation available'.

Does anybody knows the mechanism behind that?


Max
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2002
Added on Dec 3 2002
1 comment
419 views