pki:get-certificates-for-template-xml( $template-id as xs:unsignedLong ) as element(x509:cert)*
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. |
(: 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. :)