Create a PFX certificate from a CRT and private key using Windows - aaqibwani/M365 GitHub Wiki

  1. Create a new folder and place you .crt and .key file in it. If the key file is a .txt file, change extension to .key.

  2. Rename both files to have the same name (but different extension):

{{certificate_name}}.crt

{{certificate_name}}.key

Example:

mySite.crt

mySite.key

  1. Open Command Prompt and navigate to the folder and run:

         certutil -mergepfx mySite.crt mySite.pfx
    

Note: you will be asked to create a password for the .pfx file. Store it as it will be required during certificate import on the target machine.

Screenshot 2024-09-08 021252