Verify the mTLS client certificate:
Make sure the client certificate complies with standard mTLS requirements described in mTLS client certification for external feed connections.
The certificate must meet the following requirements. The Extended Key Usage (EKU) extension must include 'clientAuth'. Basic Constraints must be set to 'End Entity'. Valid Key Usage fields must be configured.
Verify whether FortiGate sends the client certificate:
Run the following sniffer command:
diagnose sniffer packet any 'host <server-IP>' 6 0 l
Replace <server-IP> with the IP address of the server.
Analyze the packet capture in Wireshark.
Open the resulting packet capture in Wireshark and inspect the TLS handshake between FortiGate and the server.
 When the issue occurs, the certificate message sent by FortiGate contains a certificate length of zero.
The following output indicates that no client certificate is presented by FortiGate.
Transport Layer Security [Stream index: 0]
TLSv1.2 Record Layer: Handshake Protocol: Certificate
Content Type: Handshake (22)
Version: TLS 1.2 (0x0303)
Length: 7
Handshake Protocol: Certificate
Handshake Type: Certificate (11)
Length: 3
Certificates Length: 0
TLSv1.2 Record Layer: Handshake Protocol: Client Key Exchange
A 'Certificates Length: 0' value confirms that the client certificate is missing from the TLS handshake.
This issue applies to FortiGate when an external connector is configured in the global scope and the external server requires mTLS authentication.
Import the mTLS client certificate directly into the local traffic Virtual Domain (VDOM) instead of the global VDOM.
After importing the certificate into the local traffic VDOM, configure the external connector to use the certificate from the local VDOM.
|