Blog

SSL Cert Convert .pfx to .key & .crt and .pem format

This for my future reference, ie when I have to deal with apache based certs ( vs IIS )

Download and install windows port of OpenSSLĀ here

** you will need to know your password if you password protect your cert **

Command to enter. 1st part ( extract the .key )

openssl
pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]

eg

openssl pkcs12 -in d:\temp\star.name_of_cert_godaddy.pfx -nocerts -out d:\temp\star.name_of_cert_godaddy.key

** eg I have installed the openssl app in C, I have placed my temp cert in D:\temp

 

2nd part ( extract the .crt )

openssl
pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]

eg

openssl pkcs12 -in d:\temp\star.name_of_cert_godaddy.pfx -clcerts -nokeys -out d:\temp\star.name_of_cert_godaddy.crt

 

Sometimes you need unencrypted key files

openssl
rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key]

eg

openssl rsa -in d:\temp\star.name_of_cert_godaddy.key -out d:\temp\star.name_of_cert_godaddy.nopass.key

 

If you need it in PEM format

openssl
rsa -in [keyfile-encrypted.key] -outform PEM -out [keyfile-encrypted-pem.key]

openssl rsa -in d:\temp\star.name_of_cert_godaddy.nopass.key -outform PEM -out d:\temp\star.name_of_cert_godaddy.nopass.pem.key

 

note self – no more searching internet, see your own notes.

SanDisk Ultra

SD Cards We Recommend for Dash Cameras

 

 

Learnt the hardway. Avoid these cards for dashcams – video etc. if you have an accident or trying to catch the low life scratching your car. The vital footage wont be there..

 

 

Looks OK on the surface – however the footage are about 2 weeks old.

 

Delete all file, should be OK now, right.

 

 

Add some files to the sd card. Then I unplug the usb card reader and plug it back. All files are back.

 

Soo.. its broken – I have tried formatting, low level format etc. no good. Time to get a new card based on MLC tech not TLC technology and it wont be covered under warranty.

https://www.sandisk.com.au/about/legal/warranty/warranty-apac