Loading TOC...

pki:get-certificates-for-template

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

Summary

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

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

Example

  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($tid)

  (: Returns the certificates for the "mycert" template. :)
     

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