Troubleshooting Tip : FortiGate IKEv2 VPN displays Fortinet default certificate instead of configured SAML certificate
| Description | This article describes when using IPsec IKEv2 with SAML authentication (for example, Azure AD as the IdP), administrators may notice that VPN endpoints display the Fortinet default factory certificate instead of the certificate configured in the SAML settings.
|
| Scope | FortiGate IPSec IKEv2 with SAML authentication. |
| Solution | The reason behind the behavior is that FortiGate uses two independent certificates in an IKEv2 SAML deployment.
SAML Service Provider certificate or the certificate that is being used for the handshake and authentication process between IdP and SP. This one is located under the SAML config.
This certificate is used only for:
CLI:
This certificate is used for:
However, the command 'set certificate <cert_name>' will never appear when the authentication mode is Pre-Shared-Key. This feature will only appear when certificate-based authentication mode is used. In SAML, the user is required to use the Pre-Shared-Key, which means the administrator cannot use a customized certificate for VPN clients. That concludes that FortiGate will send the default certificate to the user. diagnose vpn ike log filter rem-addr4 <client_publicIP> diagnose debug application fnbamd -1 To disable the debugs after testing:
diagnose debug disable diagnose debug reset
Related articles: Technical Tip: Configuring a dial-up IPsec VPN with Azure SAML authentication |