Under the default (Enable) SNI-check behavior of an SSL certificate-inspection profile, FortiGate compares the SNI value from the TLS Client Hello against the CN and SAN fields returned in the server's certificate. When the SNI does not match either the CN or any SAN, FortiGate does not simply keep trusting the client-supplied SNI or rewrite it; instead it falls back to using the CN value from the certificate's Subject field for URL/category filtering decisions. Certificate inspection, unlike full/deep SSL inspection, only ever examines the handshake and certificate fields and never decrypts the session payload; as long as the resulting web-filter verdict permits the connection, the encrypted traffic is passed through without decryption. FortiGate does not rewrite the SNI toward the server (SNI rewriting is not a default certificate-inspection behavior), and because of the detected mismatch it deliberately stops relying on the browser-supplied SNI in favor of the certificate's CN.
Community Discussion