Technical Tip: Extract a public key from a certificate file using OpenSSL
| Description | This article describes extracting a public key from a certificate file using OpenSSL in PEM format. A public key can be used in public and private SDN connectors. |
| Scope | FortiGate. |
| Solution | To extract a public key from a certificate file using OpenSSL in Windows operating systems.
Download the 'Fortinet_Factory' certificate from System -> Certificates.
Use the OpenSSL command to extract the public key:
openssl x509 -in certificate_file_name.cer -pubkey -noout > public_key_name.pem
For example:
Note:
Open the '.pem' and 'Fortinet_Factory.cer', files in notepad, the PEM file will contain the public key extracted.
Fortinet_Factory.cert file:
Public key PEM file:
|




