Mads Krag Dam - Homepage - MadsD.dk

A part of iSites.dk
Home
Blog
My IT
Husband
Family
Games
Pictures
Contact

OpenSSL - useful commands


Written by: Mads Dam - 25.06.2015 - 0 comments

So - my webhost Unoeuro has finally made it possible for me to add ssl-certificates to my websites. Even for subdomains - that is awesome! Althought they do claim a fee, which is why madsd.dk is not ssl-protected. It's still money, you know ;)

My webhost demands .crt and unencrypted .key-files. Windows usually export to .pfx so I need to split that in 2 files. OpenSSL to the rescue.

Public key extraction
openssl pkcs12 -in mypfxfile.pfx -clcerts -nokeys -out public-cert.crt

Private key extraction
openssl pkcs12 -in mypfxfile.pfx -nocerts -out private-encrypted.key

Private key decryption
openssl rsa -in private-encrypted.key -out private-decrypted.key

And done - I'm ready to import to my webhost Unoeuro


Comments



No comments


Write a comment


Name:
Website: *no http://
Comment: