X509::whole

Description

Returns the specified X509 certificate, in its entirety, in PEM format.

Syntax

X509::whole <X509 certificate>

X509::whole <X509 certificate>

  • Returns the specified X509 certificate, in its entirety, in PEM format.

Examples

when CLIENTSSL_CLIENTCERT {
  set client_cert [SSL::cert 0]
  log local0. "[X509::whole $client_cert]"
}

when HTTP_REQUEST {
    if { [SSL::cert count] > 0 } {
        HTTP::header insert "X-ENV-SSL_CLIENT_CERTIFICATE" [X509::whole [SSL::cert 0]]
    }
}