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