Java Certificate Client SSL: unable to find valid certification path to requested target
We require client authentication to send a RESTful request to some of our web services. I've installed a client cert (.pem) and key on the my local mac os via the key tool. These are not self signed. openssl pkcs12 -export -name myservercert -in not_self_signed.crt -inkey server.key -out keystore.p12 ...and converted to JKS format keytool -importkeystore -destkeystore mykeystore.jks -srckeystore keystore.p12 -srcstoretype pkcs12 -alias myservercert I'm trying to build a Java client to do the authentication. Here is what I've come up with so far: import java.io.FileInputStream; import java