EMS requires a Certificate and Private Key, you will need either both separate, or a certificate which contains a key so you can then extract it.
|
No Key Included |
Can Include a Key |
|
Cryptographic Message Syntax Standard (PKCS#7) Certificate (.p7b, .p7r or .spc) |
Personal Information Exchange Format (PKCS#12) Certificate (.pfx or .p12) |
|
Base64-encoded X.509 Certificate (.cer or .crt) |
Privacy-enhanced Electronic Mail (.pem) |
|
DER-encoded binary X.509 Certificate (.cer, .der or .crt) |
Private Key(.key) |
|
Certificate Signing Request (.csr) |
|
https://blogs.msdn.microsoft.com/kaushal/2010/11/04/various-ssltls-certificate-file-typesextensions/
The most commonly used file type which allows private key to be exported is the PKCS#12 format (.pfx/.p12 extension).
Here we will use a free program called OpenSSL (https://www.openssl.org/). There exists other methods of extracting a private key into its own file.
openssl pkcs12 -in certfile.pfx -nocerts -nodes -out key.pem
-nocerts ensures a key only fileUsing OpenSSL again:
openssl pkcs12 -in certfile.pfx -clcerts -nokeys -out cert.pem
-clcerts client certificate (Not CA)
-nokeys ensures the key is not included in the cert file
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.