I am trying to run a Jersey client class in Eclipse where the server requires a certificate. I grabbed the certificate, but can't figure out which keystore to import it into. In my Eclipse config, I have the java.home set to C:\Java\jdk1.6.0_18\jre
In my C:\Java\jdk1.6.0_18\jre\lib\security folder I have a cacerts and a jssecacerts file. I've imported the cert into both, restarted Eclipse and when I run the client class, as a Java Application, I get this error:
com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
I then installed the cert in C:\Java\jdk1.6.0_18\jre\lib\jssecacerts, restarted Eclipse and still get the same error.
Which keystore does Eclipse use????