DataScript: avi.ssl.cipher
DataScript
Function | avi.ssl.cipher( [true] ) |
Description | Returns the name of the ciphersuite negotiated for the SSL/TLS connection between the client and the virtual service, and may optionally include the version, key exchange method (Kx), authentication method (Au), encryption method (Enc), and MAC selected (Mac). The returned ciphersuite information is in OpenSSL format. See www.openssl.org/docs/manmaster/apps/ciphers.html for examples of OpenSSL formatted ciphersuites. |
Events | HTTP_REQ HTTP_RESP |
Parameter | Optional boolean true. When this parameter is not specified, only the ciphersuite name is returned. When the true flag is set, this function returns ciphersuite, version, authentication method, encryption method, and MAC selected. These values are presented as a space separated string. |
Returns | A string value containing the cipher information for the SSL/TLS connection. When the true flag is set, values are returned as a space separated string. |
Example 1 | Gracefully deny clients connecting with unsupported ciphers.
|
Example 2 | Insert a header to the server indicating the key exchange method negotiated with the client.
|
Note: This API is not supported in the events SSL_PRECONNECT
and SSL_CLIENTHELLO
.