DataScript: avi.ssl.client_cert
DataScript
New API Arguments | avi.ssl.client_cert( [[avi.CLIENT_CERT] [, avi.CLIENT_CERT_FINGERPRINT] [, avi.CLIENT_CERT_SUBJECT] [, avi.CLIENT_CERT_ISSUER] [, avi.CLIENT_CERT_SERIAL][, avi.CLIENT_CERT_NOTVALIDBEFORE] [, avi.CLIENT_CERT_NOTVALIDAFTER] [, avi.CLIENT_CERT_VERSION][, avi.CLIENT_CERT_SIGALG][, avi.CLIENT_CERT_ESCAPED] avi.CLIENT_CERT_SAN_EXTENSION] [, avi.CLIENT_CERT_X509_EXTENSIONS] ] ) |
Description | Returns the client certificate in the PEM format for an established SSL connection. Optional parameters will filter the fields returned from the client certificate. |
Events | HTTP_REQ HTTP_RESP SSL_HANDSHAKE_DONE HTTP LB Done |
Parameters | When no argument or `avi.CLIENT_CERT` is specified, returns the client certificate in the PEM format for an established SSL connection from the client to the virtual service, with each line except the first prepended with the tab character.
|
Returns | Up to nine arguments, pertaining to the client cert and its fields. |
Example 1 | If the cert's issuer isn't correct, add the issuer to a header and forward to a quarantine server pool.
|
Example 2 | Logs the client cert attributes for the SSL connection.
|
Example 3 | When you send a client certificate in a HTTP request, the client escaped certificate in displayed in the DS/HTTP policy header.
|
Note: This API is not supported in the events SSL_PRECONNECT
and SSL_CLIENTHELLO
.
Document Revision History
Date | Change Summary |
---|---|
December 20, 2021 | Updated Datascript details (client certificate) for 21.1.3 |