Loading TOC...

pki:get-certificates

pki:get-certificates(
   $cert-id as xs:unsignedLong*
) as element(pki:certificate)*

Summary

This function returns the certificate data for the specified certificates.

Parameters
$cert-id One or more certificate ids.

Example

  (: execute this against the security database :)
  xquery version "1.0-ml";

  import module namespace pki = "http://marklogic.com/xdmp/pki" 
      at "/MarkLogic/pki.xqy";

  pki:get-certificates(
           pki:get-trusted-certificate-ids()) [pki:authority = fn:true()]
  
  (: Returns all of the certificates generated by a certificate authority. :)
     

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.