Skip to main content
sthapa
Staff
Staff
Jan 28, 2021 8:27 AM UTC

Technical Tip: SSL VPN PKI user based authentication with FortiAuthenticator as Local CA authority

  • Apr 16, 2026 11:48 AM UTC
  • 0 replies
  • 7061 views
  • Translate All

Description

 

This article describes SSL VPN PKI user-based authentication with FortiAuthenticator as a Local CA authority.

 

Scope

 

FortiGate, FortiClient.


Solution

 

The FortiOS supports PKI users for SSL VPN authentication as standalone authentication or with two-factor authentication.

The following certificates have been used for this authentication, which has been generated from FortiAuthenticator.

 

  • Intermediate CA Certificate.
  • Root CA certificate.
  • User certificate.

 

  1. Create the above certificate from the FortiAuthenticator. Go to Certificate -> Management -> Certificate Authorities -> Root CA.

 
  1. Create an Intermediate CA Certificate from the FortiAuthenticator. Go to Certificate Management -> Certificate Authorities -> Intermediate CA.

Select Certificate Authority as Root CA, which we had configured in the previous setup.

 
  
  1. Create a user Certificate from the FortiAuthenticator. Go to Certificate Management -> End Entities -> Create New User Certificate.
  • Select the intermediate CA certificate that has been configured in step 2.
  • Configure the certificate Subject Alternative Name, which is used in FortiGate to validate the Client certificate against the FortiGate PKI user.
 
 
  1. Export root CA, Intermediate CA, and client certificate from the FortiAuthenticator.
  2. Import the root CA and Intermediate CA certificates in the FortiGate to trust the client certificate.
To import the Intermediate CA certificate in the FortiGate, go to System -> Certificates -> Import -> Local CA -> PKCS # 12 Certificate and select the 'Key' file and password.
 
 
To import the CA certificate in the FortiGate, go to System -> Certificates -> Import -> CA Certificate -> File.
 
 
  1. Create PKI users and groups for SSL VPN authentication.
 
config user peer
    edit "user1"
        set ca "CA_Cert_1"             <----- Select the root CA certificate.
        set subject "user1@gmail.com"  <----- Subject should match the user certificate.
    next
end
 
Add the PKI users to PKI groups.
 
config user group
    edit "SSL_PKI"
        set member "user1"
    next
end
 
Then, map the above group in the SSL VPN authentication rule.
 
  1. Then, import the Client and Root CA certificates on the client machine.
  • Import Root CA Certificate under 'Trusted root Certificate Authority'.
  • Import the Client certificate under the 'Personal' folder.

  1. Configure the FortiClient and select the Client certificate for SSL VPN PKI authentication.

 

 
 
 
Result.
 
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