FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Quint021
Staff
Staff
Article Id 357263
Description This article describes how to reimport and utilize a local certificate when encountering errors with applying a new local certificate to Administration Settings.
Scope FortiGate v7.6, v7.4.
Solution

After generating a Certificate Signing Request (CSR) on the FortiGate and importing the associated certificate via the GUI process below, the error may be observed in the screenshot attached.

How to upload the certificate: System -> Certificates -> Import -> Local Certificate -> Upload certificate with the .cer format.

Error Observed:

 GUI_Error.PNG

Although this error occurs, the certificate is still created and visible from the GUI -> System -> Certificates [Local Certificates].

However, if unable to utilize the certificate. (i.e. The certificate does not show up as an option):

Certificate_not_visible.PNG


Apply the following steps:

  1.  Navigate to the CLI and run the following commands: 


config vpn certificate local
    edit <name_of_cert>
    show full 

 

  1.  Copy all of the contents after the 'show full' command as highlighted and paste it into a text file. 


Adjusted.PNG

 

  1. Once pasted, edit the file by removing the following lines:


"set range global"
"set source user"

 

  1.  Once completed, proceed to the GUI -> System -> Certificates [Local Certificates], select the newly created certificate in Step 1, and delete it.
  2. Once the certificate is removed, navigate to the CLI and paste the content of the text file from Steps 2-3. Once completed, verify the certificate was created from the GUI --> System --> Certificates [Local Certificates].
  3. Verify certificate is usable.

 

In the list from the screenshot in Step 1,  verify the certificate is an option. Alternatively, via the CLI, issue the following commands:


config system global
     set admin-server-cert ? <----- The certificate should be visible as an option.
     end 


 
Adjs.PNG
If the issue persists, engage TAC for further assistance.