http-request set-header X-SSL-Cert %{+Q}[ssl_c_der,base64]
http-request set-header X-SSL-Cert -BEGIN\ CERTIFICATE-\ %[ssl_c_der,base64]\ -END\ CERTIFICATE-\ # don't forget last space
no certificates: certificate decode result is empty