Extracting SSL certificate from the Java Keystore (JKS)

To extract SSL certificate and private key from Keystore (JKS) file, run keytool -importkeystore \ -srckeystore keystore.jks \ -destkeystore keystore.p12 \ -deststoretype PKCS12 It will ask for the new Keystore password and current Keystore password. Once you enter the password, JKS file gets converted to P12 format. This will include all certificates in the keystone. … Read more