<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.getRequestClientCertificate.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.getRequestClientCertificate</api:function-name><api:suggest>xdmp.getrequestclientcertificate</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>getrequestclientcertificate</api:suggest><api:function-link mode="xquery" fullname="xdmp:get-request-client-certificate">/apidoc/8.0/xdmp:get-request-client-certificate.xml</api:function-link><api:function mode="javascript" name="getRequestClientCertificate" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.getRequestClientCertificate"><api:summary>
  Returns the PEM encoded client certificate if one was presented.

  <p xmlns="http://www.w3.org/1999/xhtml">Returns the empty sequence if it is not called from an HTTP server, if
  SSL is not enabled for the HTTP server, or if no certificate is available.
  A clients will not send its certificate unless the server requests it.</p>
</api:summary><api:params/><api:return>String?</api:return><api:usage>
  Use this function if you need to examine a client's certificate.
</api:usage><api:example class="javascript">
  <p xmlns="http://www.w3.org/1999/xhtml">The following example returns an XML representation
  of a client certificate if one is available.</p>
  <pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  for ( var i of xdmp.getRequestClientCertificate() ) {
   xdmp.x509CertificateExtract(i);
  }
</pre></api:example></api:function></api:function-page>