-
-
Save mahradbt/b49aeed38c17a5720dbce5c283f4a675 to your computer and use it in GitHub Desktop.
use pfx for nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl pkcs12 -in standard_certificate.pfx -nocerts -out key-encrypted.key | |
openssl pkcs12 -in standard_certificate.pfx -clcerts -nokeys -out certificate.crt | |
openssl rsa -in key-encrypted.key -out key-decrypted.key | |
openssl pkcs12 -in standard_certificate.pfx -out domain-ca.crt -nodes -nokeys -cacerts | |
cat certificate.crt domain-ca.crt > full_certificate.crt // for nginx cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment