SSL:alg_keysize()
Returns the SSL encryption key size in the handshake.
Syntax
SSL:alg_keysize();
Arguments
N/A
Events
Applicable in the following events:
-
CLIENTSSL_HANDSHAKE
-
SERVERSSL_HANDSHAKE
Example
when CLIENTSSL_HANDSHAKE{
debug("client handshake\n")
ci=SSL:cipher();
key=SSL:alg_keysize();
debug("Cipher: %s\n",ci)
debug("Alg key size: %s \n",key);
}
Result: (client send https request with various ciphers)
client handshake
Cipher: ECDHE-RSA-RC4-SHA
Alg key size: 128
or
client handshake
Cipher: ECDHE-RSA-DES-CBC3-SHA
Alg key size: 168
or
client handshake
Cipher: EDH-RSA-DES-CBC-SHA
Alg key size: 56
or
client handshake
Cipher: ECDHE-RSA-AES256-GCM-SHA384
Alg key size: 256
Supported Version
FortiADC version 5.0.x and later.