SSL .pfx Dosyasınında Sertifika Ayrıştırma

Pfx dosyadan key ve sertifikayı ayırmak için openssl ile aşağıdaki komutları kullanabilirsiniz.

Key dosyasını dışarı almak:
openssl pkcs12 -in [yourfile.pfx] -nocerts -out [drlive.key]

Sertifika dosyasını export etme:
openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [drlive.crt]

Bazı sistemlerde key dosyasını şifreli olarak kabul etmez o gibi durumlarda key dosyasını decypt etmek gerekir
Bunun için aşağıdaki komutu kullanabilirsiniz.
openssl rsa -in [drlive.key] -out [drlive-decrypted.key]

Bu işlemler için ekteki openssl dosyasını kullanabilirsiniz.

Pfx den pem yapmak için
openssl rsa -in [keyfile-encrypted.key] -outform PEM -out [keyfile-encrypted-pem.key]

Kaynak: https://www.ibm.com/docs/en/arl/9.7?topic=certification-extracting-certificate-keys-from-pfx-file

OpenSSL: OpenSSL-v0.9.8h