Loading TOC...

pki:get-template-certificate-authority

pki:get-template-certificate-authority(
   $template-id as xs:unsignedLong
) as element(pki:certificate)?

Summary

This function returns the certificate authority for the specified certificate template.

Parameters
$template-id The certificate template for which to return the certificate authority.

Example

    (: 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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.