Skip to content

Instantly share code, notes, and snippets.

@mahradbt
Last active June 3, 2018 17:19

Revisions

  1. mahradbt renamed this gist Jun 3, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. mahradbt created this gist Jun 3, 2018.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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