Fortinet black logo

Administration Guide

Configuring an SSL/SSH inspection profile

Configuring an SSL/SSH inspection profile

The custom-deep-inspection profile can be edited or new SSL/SSH inspection profiles can be configured to be used in firewall policies.

To configure an SSL/SSH inspection profile in the GUI:
  1. Go to Security Profiles > SSL/SSH Inspection and click Create New.

  2. Configure the following settings:

    Name

    Enter a unique name for the profile.

    Comments

    Enter a comment (optional).

    SSL Inspection Options
    Enable SSL Inspection of

    Enable SSL inspection of:

    • Multiple Clients Connecting to Multiple Servers: Use this option for generic policies where the destination is unknown. This is normally used when inspecting outbound internet traffic. Other SSL Inspection Options become available to configure if this option is selected.

    • Protecting SSL Server: Use this option when setting up a profile customized for a specific SSL server with a specific certificate. Define the certificate using the Server certificate field. See Protecting an SSL server for more information.

    Inspection method

    Define the inspection method:

    • SSL Certificate Inspection: Only inspects the certificate, by way of the headers up to the SSL/TLS layer, and not the contents of the traffic.

    • Full SSL Inspection: Inspects the SSL/TLS encrypted traffic payload. See Deep inspection.

    CA certificate Use the dropdown menu to select one of the installed certificates for the inspection of the packets. Click Download to save the certificate.
    Blocked certificates

    Block or allow potentially malicious certificates. Select View Blocked Certificates for a detailed list of blocked certificates, including the listing reason and date.

    Untrusted SSL certificates

    Configure the action to take when a server certificate is not issued by a trusted CA.

    • Allow: Allow the untrusted server certificate. This is the default value.

    • Block: Block the session.

    • Ignore: This option is for Full SSL inspection only. It re-signs the server certificate as trusted. When configured in the GUI for certificate inspection it has no effect and the setting is not saved.

    Click View Trusted CAs List to see a list of the factory bundled and user imported CAs that are trusted by the FortiGate.

    Server certificate SNI check

    Check the SNI in the help message with the CN or SAN field in the returned server certificate:

    • Enable: If it is mismatched, use the CN in the server certificate for URL filtering.

    • Strict: If it is mismatched, close the connection.

    • Disable: Server certificate SNI check is disabled.

    Enforce SSL cipher compliance

    Enable/disable SSL cipher compliance. This option is for Full SSL inspection only.

    Enforce SSL negotiation compliance

    Enable/disable SSL negotiation compliance. This option is for Full SSL inspection only.

    RPC over HTTPS

    Enable/disable inspection of Remote Procedure Calls (RPC) over HTTPS traffic. This option is for Full SSL inspection only.

    Protocol Port Mapping

    Inspect all ports with the IPS engine by enabling Inspect all ports.

    If Inspect all ports is disabled, specify the port through which traffic will be inspected in the field next to the listed protocols. Traffic of that protocol going through any other port will not be inspected.

    Exempt from SSL Inspection

    These options are for Full SSL inspection only. Use the menus in this section to specify any reputable websites, FortiGuard Web Categories, or addresses that will be exempt from SSL inspection:

    • Reputable Websites: Enable this option to exempt any websites identified by FortiGuard as reputable.

    • Web Categories: The categories of Finance and Banking, Health and Wellness, and Personal Privacy have been added by default. These categories are the most likely to have applications that will require a specific certificate.

    • Addresses: These can be any of the address objects that have an interface of any.

    • Log SSL exemptions: Enable this option to log all SSL exemptions.

    See Exempt web sites from deep inspection for more information.

    SSH Inspection Options

    SSH deep scan

    Enable/disable SSH protocol packet deep scanning capabilities. SSH port will become available if SSH deep scan is enabled.

    SSH port

    Define what ports will search for SSH protocol packets:

    • Any: Select this option to search all traffic regardless of service or TCP/IP port for packets that conform to the SSH protocol.

    • Specify: Select this option and enter the port number to restrict the search for SSH protocol packets to the TCP/IP port number specified. This is not as comprehensive but it is easier on the performance of the firewall.

    Common Options

    Invalid SSL certificates

    Allow or block the passing of traffic in invalid certificates. Additional common options that provide more granularity with actions for different types of invalid SSL certificates will become available if Invalid SSL certificates is set to Custom:

    • Expired certificates: Action to take when the server certificate is expired. The default action is block.
    • Revoked certificates: Action to take when the server certificate is revoked. The default action is block.

    • Validation timed-out certificates: Action to take when the server certificate validation times out. For certificate inspection, the default action is allow. For deep inspection, the default action is Keep Untrusted & Allow.

    • Validation failed certificates: Action to take when the server certificate validation fails. The default action is block.

    For deep inspection, the above options have the following actions:

    • Keep Untrusted & Allow: Allow the server certificate and keep it untrusted.

    • Block: Block the certificate.

    • Trust & Allow: Allow the server certificate and re-sign it as trusted.

    Log SSL anomalies

    Enable this feature to record and log traffic sessions containing invalid certificates.

    By default, SSL anomalies logging is enabled. Logs are generated in the UTM log type under the SSL subtype when invalid certificates are detected.

  3. Click OK.

Configuring an SSL/SSH inspection profile

The custom-deep-inspection profile can be edited or new SSL/SSH inspection profiles can be configured to be used in firewall policies.

To configure an SSL/SSH inspection profile in the GUI:
  1. Go to Security Profiles > SSL/SSH Inspection and click Create New.

  2. Configure the following settings:

    Name

    Enter a unique name for the profile.

    Comments

    Enter a comment (optional).

    SSL Inspection Options
    Enable SSL Inspection of

    Enable SSL inspection of:

    • Multiple Clients Connecting to Multiple Servers: Use this option for generic policies where the destination is unknown. This is normally used when inspecting outbound internet traffic. Other SSL Inspection Options become available to configure if this option is selected.

    • Protecting SSL Server: Use this option when setting up a profile customized for a specific SSL server with a specific certificate. Define the certificate using the Server certificate field. See Protecting an SSL server for more information.

    Inspection method

    Define the inspection method:

    • SSL Certificate Inspection: Only inspects the certificate, by way of the headers up to the SSL/TLS layer, and not the contents of the traffic.

    • Full SSL Inspection: Inspects the SSL/TLS encrypted traffic payload. See Deep inspection.

    CA certificate Use the dropdown menu to select one of the installed certificates for the inspection of the packets. Click Download to save the certificate.
    Blocked certificates

    Block or allow potentially malicious certificates. Select View Blocked Certificates for a detailed list of blocked certificates, including the listing reason and date.

    Untrusted SSL certificates

    Configure the action to take when a server certificate is not issued by a trusted CA.

    • Allow: Allow the untrusted server certificate. This is the default value.

    • Block: Block the session.

    • Ignore: This option is for Full SSL inspection only. It re-signs the server certificate as trusted. When configured in the GUI for certificate inspection it has no effect and the setting is not saved.

    Click View Trusted CAs List to see a list of the factory bundled and user imported CAs that are trusted by the FortiGate.

    Server certificate SNI check

    Check the SNI in the help message with the CN or SAN field in the returned server certificate:

    • Enable: If it is mismatched, use the CN in the server certificate for URL filtering.

    • Strict: If it is mismatched, close the connection.

    • Disable: Server certificate SNI check is disabled.

    Enforce SSL cipher compliance

    Enable/disable SSL cipher compliance. This option is for Full SSL inspection only.

    Enforce SSL negotiation compliance

    Enable/disable SSL negotiation compliance. This option is for Full SSL inspection only.

    RPC over HTTPS

    Enable/disable inspection of Remote Procedure Calls (RPC) over HTTPS traffic. This option is for Full SSL inspection only.

    Protocol Port Mapping

    Inspect all ports with the IPS engine by enabling Inspect all ports.

    If Inspect all ports is disabled, specify the port through which traffic will be inspected in the field next to the listed protocols. Traffic of that protocol going through any other port will not be inspected.

    Exempt from SSL Inspection

    These options are for Full SSL inspection only. Use the menus in this section to specify any reputable websites, FortiGuard Web Categories, or addresses that will be exempt from SSL inspection:

    • Reputable Websites: Enable this option to exempt any websites identified by FortiGuard as reputable.

    • Web Categories: The categories of Finance and Banking, Health and Wellness, and Personal Privacy have been added by default. These categories are the most likely to have applications that will require a specific certificate.

    • Addresses: These can be any of the address objects that have an interface of any.

    • Log SSL exemptions: Enable this option to log all SSL exemptions.

    See Exempt web sites from deep inspection for more information.

    SSH Inspection Options

    SSH deep scan

    Enable/disable SSH protocol packet deep scanning capabilities. SSH port will become available if SSH deep scan is enabled.

    SSH port

    Define what ports will search for SSH protocol packets:

    • Any: Select this option to search all traffic regardless of service or TCP/IP port for packets that conform to the SSH protocol.

    • Specify: Select this option and enter the port number to restrict the search for SSH protocol packets to the TCP/IP port number specified. This is not as comprehensive but it is easier on the performance of the firewall.

    Common Options

    Invalid SSL certificates

    Allow or block the passing of traffic in invalid certificates. Additional common options that provide more granularity with actions for different types of invalid SSL certificates will become available if Invalid SSL certificates is set to Custom:

    • Expired certificates: Action to take when the server certificate is expired. The default action is block.
    • Revoked certificates: Action to take when the server certificate is revoked. The default action is block.

    • Validation timed-out certificates: Action to take when the server certificate validation times out. For certificate inspection, the default action is allow. For deep inspection, the default action is Keep Untrusted & Allow.

    • Validation failed certificates: Action to take when the server certificate validation fails. The default action is block.

    For deep inspection, the above options have the following actions:

    • Keep Untrusted & Allow: Allow the server certificate and keep it untrusted.

    • Block: Block the certificate.

    • Trust & Allow: Allow the server certificate and re-sign it as trusted.

    Log SSL anomalies

    Enable this feature to record and log traffic sessions containing invalid certificates.

    By default, SSL anomalies logging is enabled. Logs are generated in the UTM log type under the SSL subtype when invalid certificates are detected.

  3. Click OK.