Skip to main content
dbhavsar
Staff
Staff
Aug 24, 2024 6:21 AM UTC

Technical Tip: Using same the CSR on another FortiGate

Description

 

This article describes how to use the same CSR on another FortiGate.

 

Scope

 

FortiGate.

 

Solution

 

  1. Generate the CSR on the FortiGate, make sure to save the password correctly needed on another FortiGate as below.

    Password.png

     

     

NOTE: If no password is provided, FortiGate will automatically generate a random password and use it to encrypt the private key to ensure its security. Fortinet does not provide assistance with private key password recovery.

  1. Here is how to generate a CSR on FortiGate as described in the Administration Guide: Generate a CSR | Fortinet Document Library.
  2. Below, it is possible to see the CSR generated named 'Dup-CSR' on LDAPS FortiGate:
     
    LDAPS-CSR.png       
  3. Open the CSR in the CLI using the following commands:

    config vpn certificate local
        edit Dup-CSR
           show full

  4. Copy everything except the password, range, and source as below and open another FortiGate.

    Password_1.png

     

  5. Once done, open the CLI console and run the below commands to add the Dup-CSR entry on new FortiGate.

    config vpn certificate local

        edit Dup-CSR

  6. After that run the below command and paste the configuration copied from another FortiGate:

            set password <password>   (Use the same password saved in step 1)

  7. It is possible to see below the same CSR is generated on another FortiGate HUB:
     
    HUB-CSR.png     
  8. When everything is done, it is possible to get the certificate signed and import it to both the FortiGate as described on the Administration Guide: Procuring and importing a signed SSL certificate | Fortinet Document Library.
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024