Fortinet white logo
Fortinet white logo

Script Reference Guide

SSL:cipher()

SSL:cipher()

Returns the cipher in the handshake.

Syntax

SSL:cipher();

Arguments

N/A

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

  • SERVERSSL_RENEGOTIATE

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when CLIENTSSL_HANDSHAKE {
debug("client_handshake\n")
ci=SSL:cipher()
debug("Cipher: %s \n",ci)
}
Result: (if client send https request with cipher ECDHE-RSA-DES-CBC3-SHA)
Cipher: ECDHE-RSA-DES-CBC3-SHA

Supported Version

FortiADC version 5.0.x and later.

SSL:cipher()

SSL:cipher()

Returns the cipher in the handshake.

Syntax

SSL:cipher();

Arguments

N/A

Events

Applicable in the following events:

  • CLIENTSSL_HANDSHAKE

  • SERVERSSL_HANDSHAKE

  • SERVERSSL_RENEGOTIATE

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when CLIENTSSL_HANDSHAKE {
debug("client_handshake\n")
ci=SSL:cipher()
debug("Cipher: %s \n",ci)
}
Result: (if client send https request with cipher ECDHE-RSA-DES-CBC3-SHA)
Cipher: ECDHE-RSA-DES-CBC3-SHA

Supported Version

FortiADC version 5.0.x and later.