Skip to main content
Jonathan_Body_FTNT
Staff
Staff
June 4, 2009

Technical Note: Import a Microsoft IIS Server Certificate into FortiOS

  • June 4, 2009
  • 0 replies
  • 33801 views
Description
When trying to import a Server Certificate generated from a Microsoft IIS server, the FortiGate unit displays the following error message: ''Failed to import File''.
Solution
Two separate files must be generated from the .PFX file. The first one must contain the private key, the second the certificate required for authentication.

To generate the files you can use the openssl tool  available at
www.openssl.org :

1. Export the Private Keys out of the PFX file.
openssl pkcs12 -in filename.pfx -nocerts -out privatekey.key

You have to provide a password if the private key is encrypted in the PFX file
2. Export the Certificate out of the PFX file.
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out certfilename.crt
3. Import the Certificate file and the key file into FortiGate.

System -> Certificates -> Local Certificate -> Import -> Type Certificate

Select Certificate File and Key File and provide the private key encryption PW .

These files must then be imported via the GUI as shown below:

fropert_FD30129_FD30129.png

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!