Create PFX from CRT and KEY files

Summary

Build the PFX file using CRT and Key files

Product

  • OpenSSL

  • SSL/TLS Certificate

On this page

Related Content

You will need OpenSSL-Win32 or OpenSSL-Win64 installed

You will need the following files:

Cetificate.CRT

PrivateKey.KEY

Step 1: Convert key.txt to key.key

  • Open Command Prompt as administrator

  • Goto C:\Program Files\OpenSSL-Win64\bin (default folder)

  • Copy your PrivateKey.txt to C:\Program Files\OpenSSL-Win64\bin

image-20240315-005412.png
  • Run the following command line:

openssl rsa -in PrivateKey.txt -outform pem -out PrivateKey.key

 

image-20240315-005715.png

 

Step 2: Merge PrivateKey.key and Certificate.crt

  • Open Command Prompt as administrator

  • Goto C:\Program Files\OpenSSL-Win64\bin (default folder)

  • Copy your PrivateKey.key to C:\Program Files\OpenSSL-Win64\bin

  • Copy your Certificate.crt to C:\Program Files\OpenSSL-Win64\bin

  • Run the following command line:

openssl pkcs12 -export -out NewCertPFXFormat.pfx -inkey PrivateKey.key -in Certificate.crt

You will be prompted to create a password for the PFX file. Make sure to enter it correctly 1st and 2nd time.

Â