MarkLogic 10 Product Documentation
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. :)
     
Powered by MarkLogic Server | Terms of Use | Privacy Policy