I have a Java SSL server to which I want my Java SSL client and C++ SSL client to be able to connect. The Java client connects without issues. Now I want to have my C++ SSL
The following simple single line command will export the certificate to PEM format. Yes, you need openssl, keytool alone can't do this.
keytool -exportcert -alias -keystore | openssl x509 -inform DER >cert.pem