pki:get-template-certificate-authority( $template-id as xs:unsignedLong ) as element(pki:certificate)?
This function returns the certificate authority for the specified certificate template.
Parameters | |
---|---|
template-id | The certificate template for which to return the certificate authority. |
(: 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-template-certificate-authority($tid) (: Return the certificate authority for the "mycert" template. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.