Convert .crt to .jks

1 min


To convert .crt to .jks with openssl, you have to first convert it to .p12 (pfx). After which, you will convert to .jks.

openssl pkcs12 -export -in abc.crt -out abc.p12

If you have .crt, and key file, you need to merge them both into one file, using the code below. Most times, the code below, is what you will use, since most .crt files, come with .crt key file.

openssl pkcs12 -export -in abc.crt -inkey abc.key -out abc.p12
keytool -importkeystore -srckeystore abc.p12 \
        -srcstoretype PKCS12 \
        -destkeystore abc.jks \
        -deststoretype JKS
default alias is 1
password is what you set at the prompt

You can also learn how to convert other certificates.

Convert .Crt Certificates

Convert .crt to .Cer

Convert .crt to .jks

Convert .crt to .pem

Convert .crt to .der

Convert .crt to .p7b

Convert .crt to p12

Convert .Cer Certificates

Convert .cer to crt

Convert .cer to .jks

Convert .cer to .pem

Convert .cer to .der

Convert .cer to .p7b

Convert .cer to .p12

Convert .jks Certificates

Convert .jks to cer

Convert .jks to .pem

Convert .jks to .der

Convert .jks to .p7b

Convert .jks to .p12

Convert .jks to .crt

Convert .pem Certificates

Convert .pem to .crt

Convert .pem to .jks

Convert .pem to .cer

Convert .pem to .der

Convert .pem to .p7b

Convert .pem to .p12

Convert .der Certificates

Convert .der to .pem

Convert .der to .crt

Convert .der to .jks

Convert .der to .cer

Convert .der to .p7b

Convert .der to .p12

Convert .p7b Certificates

Convert .p7b to .der

Convert .p7b to .pem

Convert .p7b to .jks

Convert .p7b to .cer

Convert .p7b to .crt

Convert .p7b to .p12

Convert .p12 Certificates

Convert .p12 to .crt

Convert .p12 to .p7b

Convert .p12 to .der

Convert .p12 to .pem

Convert .p12 to .jks

Convert .p12 to .cer

See Also:

How to Setup Email on DigitalOcean

Chmod Command Permissions

How to Add Sudo User in Ubuntu and Linux with Root Privileges


0 Comments