FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
jasonhong
Staff
Staff
Article Id 231395

Description

 

This article describes how to upload and set local certificate to be used in FortiManager/FortiAnalyzer using WebUI and CLI.

 

Scope

 

FortiManager and FortiAnalyzer.

 

Solution

 

  1. The user can upload a local certificate into FortiManager/Fortianalyzer by navigating as below: System Settings -> Certificates -> Local Certificates -> Import.

 

importcert.png

 

 

Use the option 'Certificate'.

 

Requirements:

  • Certificate (.crt).
  • Key File  (.key).
  • Certificate Password.

Requirements.jpg

 

Configuration:

  • Certificate File :  test.crt.
  • Key File:  test.key.
  • Password:  Certificate Password.

 

             LocalCertificate.jpg

The new 'Local Certificate' will be displayed in System Settings -> Certificates -> Local Certificates.

 

 Display.jpg


Below is another example of creating a new Local Certificate through CLI:

 

config system certificate local
    edit "whatever"
        set password ENC OTYwOTM2MDE2MzMzMDQxObncgXrfaJGPDHYY9I09cMQokPUzS+GNiIP6WD8uwAXAWzLsi4NIt1uYXYt5k17NbGbRqd9ukwPC8WUYBuBX8ilVmCDwnmfJyWa82eP6TCBd0SS2UbJXNGX5SFLPw6o9gfMv1t/AQV7w78MLqcHgp2jCYGY751NNIB452h1y53Qy
        set comment "whatever"
        set private-key "-----BEGIN ENCRYPTED PRIVATE KEY-----
        MIIJpDBOBgkqhkiG9w0BBQ0wQTApBgkqhkiG9w0BBQwwHAQI9hoxbo7L+UcCAggA
        <---snip-->
        tBGA5uCegCmC4TWjqvyMh+5bqABe4TeX
        -----END ENCRYPTED PRIVATE KEY-----"
        set certificate "-----BEGIN CERTIFICATE-----
        MIIHXzCCBcegAwIBAgIRAPMmRMkH/yY9sLYSRB6mbeUwDQYJKoZIhvcNAQEMBQAw
        <---snip-->
        D/O15yhTj+sN4kXtFN7pVQKY0w==
        -----END CERTIFICATE-----"
    next
end

 

Run the following commands via CLI to find the imported certificate:

 

get system certificate ca test

get system certificate crl test

get system certificate local test

get system certificate oftp test

get system certificate remote test

get system certificate ssh test

 

 search.JPG

 
  1. Once the local certificate has been uploaded successfully, the user will be able to set the FortiManager/FortiAnalyzer to use the newly uploaded local certificate by navigating as below. Under System Settings -> Admin -> Admin Settings -> HTTPS & Web Service Certificate, select the cert -> Apply.

 

selectcert.png

 

 

 Settings.jpg

 

Related documents:

Local certificates

Technical Tip: How to manage Local certificates from FortiManager and use in SSL/SSH inspection prof...