Create a PFX certificate from a CRT and private key using Windows - aaqibwani/M365 GitHub Wiki
-
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.
-
Rename both files to have the same name (but different extension):
{{certificate_name}}.crt
{{certificate_name}}.key
Example:
mySite.crt
mySite.key
-
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.