Wednesday 14 August 2024

openssl get private and public key from pk12

 

https://stackoverflow.com/questions/9497719/extract-public-private-key-from-pkcs12-file-for-later-use-in-ssh-pk-authenticati

open ssl use pk12 to get pem and privat key 


PKCS#1 Private key


openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem




Certificates:


openssl pkcs12 -in yourP12File.pfx -clcerts -nokeys -out publicCert.pem

No comments:

Post a Comment