Description |
This article describes how to import a PFX certificate to FortiManager/FortiAnalyzer via the CLI. PEM and PFX (also known as PKCS #12) are both formats of X.509 Certificate. PEM is Base64 ASCII encoded and can be viewed in a text editor while PFX is in Binary format, not human-readable |
Scope |
FortiManager / FortiAnalyzer. |
Solution |
To upload an SSL Certificate to FortiManager/FortiAnalyzer via the CLI, it must be in the PEM format.
Upload the PFX certificate to the online tool and enter its password, then select convert. The PEM certificate will be downloaded. In this example, the downloaded file will be test-certificate.pem.
config system certificate local <- Note that in this case, a local certificate is being uploaded. Use the same method for other certificate types, but change 'local' to the corresponding type edit “test-certificate” <- Give a name to the cert. set private-key paste the first paragraph set certificate paste the second paragraph end
Related articles: Technical Tip: How to upload and set local certificate to be used in FortiManager/FortiAnalyzer Technical Tip: Using an externally signed local certificate for OFTP connection Technical Tip: How to import an SSL certificate as a local certificate Technical Tip: How to configure FortiManager to use custom certificate for HA communication Technical Tip: How to Convert a PKCS#12 Certificate to Legacy Format for FortiManager/FortiAnalyzer Technical Tip: Import PFX certificate to FortiManager/FortiAnalyzer via the CLI |
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.