Skip to main content
Network_Learners
New Member
Oct 6, 2026 9:41 AM UTC
Question

ipsec-dialup_vpn with pki user

Hello Team,

can anyone help me with dial up vpn configuration with PKI user.

It is working fine with radius user but the requirement is for internal users vpn should be connected with certificate instead of username and password.

 

any step by step configuration guide and troubleshooting links would be helpful

4 replies

funkylicious
SuperUser
SuperUser
Oct 6, 2026 12:09 PM UTC

hi,

this would be a starting point - https://docs.fortinet.com/document/fortigate/7.6.0/administration-guide/443323/dialup-ipsec-vpn-with-certificate-authentication 

for machine cert to a use a certificate with a specific cn instead of a user cert, these settings should be different under config user peer

config user peer
    edit "<>-pki"
        set mandatory-ca-verify enable
        set ca "<>"
        set subject ‘ ‘
        set cn "LAB-IPsec"
        set cn-type string
        set mfa-mode none
        set ocsp-override-server ''
        set two-factor disable
    next

end

Translate
"jack of all trades, master of none"
sjoshi
Staff
Staff
Oct 7, 2026 12:43 AM UTC

 

You can configure dialup VPN with certificate-based (PKI) authentication for internal users, replacing username/password with X.509 certificates. This works for both IPsec dialup VPN and SSL VPN. The configuration requires three certificate types: a server certificate, user certificates, and a CA certificate.
You may refer:
https://community.fortinet.com/fortigate-3/technical-tip-fortigate-ssl-vpn-and-ipsec-dial-up-pki-user-certificate-matching-logic-214960

Translate
Thanks, Salon
Network_Learners
New Member
Oct 7, 2026 8:59 AM UTC

Hi Sjoshi,

iam using a public cert ( a godaddy signed ) cert as a server cert and i have a CA cert and user cert for PKI user.

same certs are working fine for SSL vpn but it is not working for IPsec.

any suggestions what needs to be checked.

 

Translate
sjoshi
Staff
Staff
Oct 7, 2026 11:36 PM UTC

Hi ​@Network_Learners 

 

Certificate Requirements
Root CA certificate: Can be public or private, must be imported to FortiGate and installed in the client's Trusted Root CA store
Server certificate: Signed by the Root CA, CN and SAN must match the IP/FQDN used to connect, must include Digital Signature and Key Encipherment in Key Usage, and Server Authentication in Extended Key Usage
Client certificate: Signed by the Root CA, Key Usage must have Digital Signature enabled (Certificate Sign and CRL Sign disabled), Extended Key Usage should have Client Authentication enabled

Refer:
https://community.fortinet.com/fortigate-3/technical-tip-fortigate-ssl-vpn-and-ipsec-dial-up-pki-user-certificate-matching-logic-214960

Configuration Steps
1. Import Certificates to FortiGate
2. Create PKI User (Peer)
3. Create PKI User Group
4. Configure IPsec Phase 1
5. Configure Phase 2
6. Configure Firewall Policies


Client-Side Configuration
On the VPN profile, select X.509 Certificate as the authentication method and choose the imported certificate

If you still face the issue:
diagnose debug reset
diagnose vpn ike log-filter rem-addr4
diagnose debug application ike -1
diagnose debug application fnbamd -1
diagnose debug enable

 

Regards,

Salon Raj Joshi

Translate
Thanks, Salon
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