ltm rule command X509 wholeΒΆ

iRule(1)						BIG-IP TMSH Manual						  iRule(1)

X509::whole
       Returns an X509 certificate in PEM format.

SYNOPSIS
       X509::whole CERTIFICATE

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

       Syntax

       X509::whole 

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

RETURN VALUE
       Returns an X509 certificate in PEM format.

VALID DURING
       ANY_EVENT

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]]
	    }
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.

BIG-IP							    2022-04-12							  iRule(1)