Permalink: |
Converting WM Keeper WebPro keys to PEM format
In some cases, you may need to convert the WM Keeper WebPro keys from pkcs12 to PEM format , for example, to work with third-party libraries.
Let's use the openssl utility for this purpose .
Suppose we have a key saved (imported) from the browser: 529763127606.p12 (or 529763127606. pfx)
First, we extract the key (save without password: - nodes):
$ openssl pkcs12 -in 529763127606.p12 -nocerts -nodes -out 529763127606.key Enter Import Password: MAC verified OK Enter PEM pass phrase: Verifying - Enter PEM pass phrase:
Then we extract the certificate:
$ openssl pkcs12 -in 529763127606.p12 -clcerts -nokeys -out 529763127606.pem Enter Import Password: MAC verified OK
We received the key file 529763127606.key and certificate file 529763127606.pem .