Check out this link for some help: http://javaalmanac.com/egs/javax.net.ssl/GetCert.html
Only problem is that it requires JDK 1.4. The JSSE packages do not cut it. Adrian -----Original Message----- From: Becky Phaneuf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 November 2002 1:25 PM To: "Tomcat Users List"<[EMAIL PROTECTED] Subject: unable to authenticate against company-generated certificate Hi everyone, I have a servlet that is tasked to download various files from a secure site. It uses an HttpsURLConnection to connect to the site's root and passes my Authenticator class (w/ username and password) as the default authenticator. It used to work fine until the site's admin replaced their verisign certificate with an in-house-generated one. Now my servlet receives a java.security.cert.CertificateException stating that it cannot find a trusted certificate. I tried adding the server's certificate to my server's keystore, but I'm afraid that didn't work. I believe I have to obtain the certificate and somehow validate it. If anyone has experience with this I'd greatly appreciated it. Thanks in advance, -Becky -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
