To convert .pfx to .jks
1. Create an empty keystore.
Open command window and type:
keytool -genkey -alias foo -keystore testerKeystore.jks
2. Fill in data keytool asks you for.
3. Import .pfx into keystore you created using this command:
keytool -importkeystore -srckeystore keystore.pfx -srcstoretype pkcs12 -destkeystore testerKeystore.jks -deststoretype JKS
4. Enter destination and source keystore password.
5. Check if all of your certificates from pfx are imported into JKS.
keytool -list testerKeystore.jks
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