Loading TOC...

pki:get-pending-certificate-requests-xml

pki:get-pending-certificate-requests-xml(
   $template-id as xs:unsignedLong
) as element(x509:req)*

Summary

This function returns any pending certificate requests for the specified template. The pending requests are returned as XML.

Parameters
template-id The certificate template id for the certificate requests 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";

  for $tid in pki:get-template-ids()
     return pki:get-pending-certificate-requests-xml($tid)

  (: Returns all of the pending certificate requests in the security database in XML format. :)
  

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