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!

SSLPeerUnverifiedException: peer not authenticated (HELP!)

843811Aug 13 2001 — edited Jul 19 2003
I'm trying to write a very simple Java app that connects to a IIS/Tomcat server and uploads a file (using PUT) via HTTPS (using JSSE and the HTTPClient package w/JSSE patch.) I've done this with no problems using straight HTTP, however I'm not having much success with HTTPS. It seems to be a certificate issue as I'm getting the error:

javax.net.ssl.SSLPeerUnverified Exception: peer not authenticated

As I'm a novice at this SSL stuff, I'm clueless on how to set up the appropriate certificates. I've tried creating a certificate on the server with keytool, and then exporting that cert and importing it on the client - but that hasn't helped. Nor have I been able to find any documentation that's of much help on the web. If someone could point me in the right direction, I'd appreciate it very much.

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 16 2003
Added on Aug 13 2001
5 comments
1,350 views