Skip to main content
Ahmed_Galal
Staff
Staff
Mar 18, 2026 1:47 PM UTC

Technical Tip: How to issue a Let's Encrypt certificate using the FortiWeb API

  • Sep 23, 2026 7:43 AM UTC
  • 0 replies
  • 208 views
  • Translate All

Description

This article describes how to issue a certificate with Let's Encrypt using the FortiWeb API.

Scope

FortiWeb.

Solution

  1. The following API request is equivalent to creating a new ACME in the GUI:


POST /api/v2.0/cmdb/system/certificate/letsencrypt
{
"name": "certname",
"domain": "example.com",
"validation-method": "HTTP-01",
"renewal-period": 10
}

 

  1. The following API request is equivalent to pressing the issue button in the GUI:

 

curl -k -X POST \
-H "Authorization: <token>" \
"https://<host>/api/v2.0/system/certificate.letsencrypt.issue?name=certname"


Note: Depending on the validation method used, additional steps may be needed. For learning about the different steps for the different validation methods, refer to ACME Certificates.


Related document:
Fortinet Developer Network

    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