Skip to Content

Solved: How do I renew certificate expired on FortiGate

This article describes how to renew a certificate expired on FortiGate.

Sometimes it happens that the certificate is expired and admins have trouble logging into the FortiGate GUI, as some browsers do not like an expired certificate.

In order to identify the certificate that has expired, run the following command on FortiGate CLI (If the firewall has vdoms, run this command in the root vdom(management vdom):

# get vpn certificate local details

Get vpn cer local detail

In this way, one can identify which certificate has expired based on validity time.

If the build-in certificate is expired on FortiGate, as per the example below:

Cert expired

In order to renew the expired built-in certificate, run the following command on FortiGate CLI:

# execute vpn certificate local generate default-ssl-key-certs

A message will be prompted to confirm the re-generation of the default certificate.

"Are you sure to re-generate the default RSA, DSA, ECDSA and EdDSA key certs for ssl resign?
Do you want to continue? (y/n)y

After the confirmation, it will show the status as Valid.

Cert expired

The same command can also be used to renew other certificates.

# execute vpn certificate local generate ?

cmp Generate a certificate request over CMPv2.
default-ssl-ca Generate the default CA certificate used by SSL Inspection.
default-ssl-ca-untrusted Generate the default untrusted CA certificate used by SSL Inspection.
default-ssl-key-certs Generate the default RSA, DSA and ECDSA key certs for ssl resign.
default-ssl-serv-key Generate the default server key used by SSL Inspection.
ec Generate an elliptic curve certificate request.
rsa Generate a RSA certificate request.

Certificate imported externally do not get renewed, It has to be manually renewed.

Note: Make sure that the system time on FortiGate is the same as the time zone.

    Ads Blocker Image Powered by Code Help Pro

    Your Support Matters...

    We run an independent site that\'s committed to delivering valuable content, but it comes with its challenges. Many of our readers use ad blockers, causing our advertising revenue to decline. Unlike some websites, we haven\'t implemented paywalls to restrict access. Your support can make a significant difference. If you find this website useful and choose to support us, it would greatly secure our future. We appreciate your help. If you\'re currently using an ad blocker, please consider disabling it for our site. Thank you for your understanding and support.