Possible Duplicate:
How do I accept a self-signed certificate with a Java HttpsURLConnection?
I need to connect to a website an send an xml in the request. The web site is using a HTTPS connection. The site does not provide the automatic download of the certificate. So, they have provided a certificate in the PEM format. Can anyone give an example of connecting throuhg java to secure site using a certificate? Or where do I need to install this certificate in order to use it in the java program?