SSLPeerUnverifiedException: peer not authenticated (HELP!)
843811Aug 13 2001 — edited Jul 19 2003I'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,