Skip to main content
syrius82
New Member
August 3, 2021
Question

Upload multiple SSL certificates at once ?

  • August 3, 2021
  • 2 replies
  • 3165 views

Dear Forum, 

 

We recently upgraded to fortigate 7.0.1 firmware and we need to use it for SSL purposes for a large number of domain names.

SSL certificates have been already generated and our need is only to upload and configure them through the Fortigate interface.

The following modus operandi works wery well 

 

 

 

[ul]
  • Prepare your primary and intermediate certificates
  • Copy and paste the contents of your primary and intermediate certificates into separate Notepad files and save them with .crt extension.
  • When copying the encrypted certificate text, don’t forget the BEGIN and END tags as well Log into your FortiGate dashboard Navigate to System > Certificates and select Import > Local Certificate Browse your primary certificate and click OK.
  • The status of your certificate should change from PENDING to OK Next, import your intermediate certificate. Go to System > Certificates and select Import > CA Certificate Browse your intermediate certificate and click OK.
  • You should see your intermediate CA in the CA Certificates list Now, click on VPN > SSL > Settings In the Connection Settings pane, under the Server Certificate drop-down menu, select the SSL certificate you’ve just installed and click Apply.
  • Congratulations, you’ve successfully installed an SSL certificate on FortiGate VPN system.[/ul]

    However, this will take a lot of time to secure all our domain names (more than 50).

    Is there a faster way to upload and configure several certificates at the same time?

     

    Thank you very much for your attention.

     

    Best regards,

    Flavio

    • 2 replies

      emnoc
      New Member
      August 3, 2021

      Maybe the API but I haven't tried that. You could build a SubjectAlt and list all of the domainNames in the AltName field as a possible solution and specially if your signing your own public-certificates. We did that with entrust and previously with digitrust in a previous role and life.

       

      So we could stroke our own certificates and apply altNames as required and upload the single certificate into the fortigate.

       

      YMMV

       

      Ken Felix

      syrius82
      syrius82Author
      New Member
      August 6, 2021

      Hi Ken,

       

      Thanks a lot for your helpful reply. 

      We actually find a way to upload multiple certificates through the fortigate API via Terraform. Or at least the API is able to allow this action.  

      The problem now is that it looks like we can assign only one certificate for VIP address and SNI mode seems not configurable. Do you think that the SAN is the only possible workaround? This latter option is a bit frustrating because we need to generate the certificate again in this case (we have already created 50 crt/key files, namely 1 for each hostname).

       

      Thanks again for your assistance and to everyone may help us.

       

      Best regards,

       

      Flavio 

      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.
      Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!