
pki:get-pending-certificate-requests-xml( $template-id as xs:unsignedLong ) as element(x509:req)*
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. |
(: 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. :)