To convert .jks to .crt to you need to tinker a little bit.
1. convert .jks to .p12 using java keytool with the following code.
keytool -importkeystore -srckeystore certificate.jks -destkeystore certificate.p12 deststoretype PKCS12
2. Convert .p12 to .key
keytool -importkeystore -srckeystore keystore.p12 -srcstoretype pkcs12 -destkeystore keystore -deststoretype JKS
3. Create key
C:\openssl-0.9.8k_X64\bin\openssl pkcs12 -in keystore.p12 -nocerts -nodes -out certificate.key
4. Create certificates
C:\openssl-0.9.8k_X64\bin\openssl pkcs12 -in keystore.p12 -nokeys -out certificate.crt
You can also learn how to convert other certificates.
Convert .Crt Certificates
Convert .Cer Certificates
Convert .jks Certificates
Convert .pem Certificates
Convert .der Certificates
Convert .p7b Certificates
Convert .p12 Certificates
See Also:
How to Setup Email on DigitalOcean
How to Add Sudo User in Ubuntu and Linux with Root Privileges
0 Comments