
pki:get-pending-certificate-requests-pem( $template-id as xs:unsignedLong ) as xs:string*
This function returns any pending certificate requests for the specified template. The pending requests are returned as PEM encoded strings.
| 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-pem($tid)
(: Returns all of the pending certificate requests in the security database in PEM
encoded format. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.