How to convert a .jks in a .key

Configurare noua (How To)

Situatie

Solutie

1. Convert .jks to .p12
keytool -importkeystore \
-srckeystore mykeystore.jks \
-destkeystore keystore.p12 \
-srcstoretype JKS \
-deststoretype PKCS12

You’ll be prompted for store passwords.

2. Extract .key (private key) from .p12
openssl pkcs12 -in keystore.p12 -nocerts -nodes -out mykey.key

3. Extract certificate (optional)
openssl pkcs12 -in keystore.p12 -clcerts -nokeys -out mycert.crt

Tip solutie

Permanent

Voteaza

(7 din 11 persoane apreciaza acest articol)

Despre Autor

Cel Mai Apreciat Autor

Leave A Comment?