Technical Tip: FortiGate Certificate-based IPsec VPN Configuration
| Description | This article describes the strict certificate dependencies when configuring IPsec VPN authentication using certificates. |
| Scope | FortiGate running versions 7.0, 7.2, 7.4, 7.6 and 8.0. |
| Solution | When configuring IPsec VPN with certificate-based authentication, both peers must be able to validate the certificate chain presented during IKE authentication.
The client leaf certificate and the server leaf certificate installed on the FortiGate must chain to the same trusted CA hierarchy when a specific CA is configured for peer validation. Proper chain validation is mandatory for successful authentication.
Additional details about this requirement are explained in Dial-up IPsec VPN with certificate authentication.
In typical deployments, a Root CA signs one or more Intermediate (subordinate) CAs, which then issue the actual leaf certificates. Authentication succeeds only if the full certificate chain (Leaf -> Intermediate(s) -> Root) can be validated and the Root CA is trusted.
Trust Requirements: For mutual certificate authentication to succeed when a CA is defined under the IPsec peer configuration:
There is no implicit trust relationship between different Root CAs in this configuration context. Validation succeeds only when both certificates ultimately belong to the same trust chain.
Consider the following example of a scenario that will not work:
Although each side may individually trust the other's issuing CA, authentication fails because the certificates do not chain to the same configured CA hierarchy. |