Fortinet white logo
Fortinet white logo

Script Reference Guide

SSL:cert_request()

SSL:cert_request()

Requests the client certificate and verifies it. This command returns Boolean true if successful, otherwise, returns Boolean false.

Syntax

SSL:cert_request()

Arguments

N/A

Events

  • BEFORE_AUTH

  • HTTP_REQUEST

Example

when HTTP_REQUEST {
          ret = SSL:cert_request()
          if ret then
               debug("------> Client cert verified successfully.\n");
          else
               debug("------> Client cert failed to verify.\n");
          end
}

Supported Version

FortiADC version 5.0.x and later.

SSL:cert_request()

SSL:cert_request()

Requests the client certificate and verifies it. This command returns Boolean true if successful, otherwise, returns Boolean false.

Syntax

SSL:cert_request()

Arguments

N/A

Events

  • BEFORE_AUTH

  • HTTP_REQUEST

Example

when HTTP_REQUEST {
          ret = SSL:cert_request()
          if ret then
               debug("------> Client cert verified successfully.\n");
          else
               debug("------> Client cert failed to verify.\n");
          end
}

Supported Version

FortiADC version 5.0.x and later.