MarkLogic Server 11.0 Product Documentation
pki:get-certificates-for-template-xml

pki:get-certificates-for-template-xml(
   $template-id as xs:unsignedLong
) as element(x509:cert)*

Summary

This function returns all of the certificates for the specified certificate template in XML format.

Parameters
template-id The certificate template id for the certificates to be returned.

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";

  let $tid := pki:template-get-id(pki:get-template-by-name("mycert"))

  return
     pki:get-certificates-for-template-xml($tid)
    
  (: Returns the certificates for the "mycert" template in XML format. :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy