Skip to content

Instantly share code, notes, and snippets.

View davebdb's full-sized avatar

David Bukowski davebdb

View GitHub Profile
@davebdb
davebdb / keybase.md
Created March 14, 2018 00:57
Keybase Identification

Keybase proof

I hereby claim:

  • I am davebdb on github.
  • I am davebb (https://keybase.io/davebb) on keybase.
  • I have a public key ASAHkwSAEGn5qG-wFov5XU22k6pG-U1xJ5ABmh3QOzJhtAo

To claim this, I am signing this object:

@davebdb
davebdb / Howto convert a PFX to a seperate .key & .crt file
Created January 18, 2017 12:29 — forked from TemporaryJam/Howto convert a PFX to a seperate .key & .crt file
How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
source: http://www.markbrilman.nl/2011/08/howto-convert-a-pfx-to-a-seperate-key-crt-file/
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`