Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
openssl genrsa -out partner.ppk 1024
openssl req -new -key partner.ppk -out partner.req
openssl x509 -req -days 730 -in partner.req -signkey partner.ppk -out partner.cer
Для конвертации приватного ключа ppk в pfx:
openssl pkcs12 -export -in partner.cer -inkey partner.ppk -certfile partner.cer -nodes -out partner.pfx
Extract Private key
openssl pkcs12 -in partner.pfx -nocerts -out partner-private-key.pem -nodes
Extract Public key
openssl pkcs12 -in partner.pfx -clcerts -nokeys -out partner-public-cert.pem
Extract Certificates:
openssl pkcs12 -in partner.pfx -clcerts -nokeys -out partner-public-cert.pem
Для конвертации cer в pem:
openssl x509 -inform pem -in certificate.cer -outform der -out certificate.pem
Extract .pem from .pfk
openssl pkcs12 -in cert.pfx -out cert.pem -nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment