Creating and converting an ssl certificate in numerous formats

Reading Time: < 1 minute

Creating a key file 

openssl genrsa -des3 -out tugrul.key 1024

Creating CSR(Certificate Signing Request) file

openssl req -new -key tugrul.key -out tugrul.csr

Creating a CRT  Self-Signed SSL Certificate

openssl x509 -req -days 365 -in tugrul.csr -signkey tugrul.key -out tugrul.crt

Converting a Certificate File to PKCS#12(PFX) Format

 openssl pkcs12 -export -out tugrul.p12 -inkey tugrul.key -in tugrul.crt -certfile tugrul.crt

for pfx format alter “-out tugrul.p12” as “-out tugrul.pfx ”

Converting .crt file into the Microsoft .cer format

Double Click the crt file and Skip to the Details tab


then choose the format you wish to be exported as