Deepak wrote:
>
> I have created a self signed server certificate on a local machine using
> OpenSSL. I want to connect to this machine using the same code but it gives
> an error "javax.net.ssl.SSLException: untrusted server cert chain". I want
> the code to trust this certificate.
You have to add the server cert to your key store with JDK's
keytool.
> I have to somehow install it somewhere on my machine which runs this code
> (probably in the cacerts file).
You can either modify the system-wide cacerts file (as sys admin) or
use your own local key store. You have to define which one is used.
Read the docs of the Sun JDK or JSSE (e.g.
http://java.sun.com/products/jsse/INSTALL.html).
Ciao, Michael.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]