Loading TOC...

MarkLogic 9 Product Documentation
pki:template-get-request

pki:template-get-request(
   $template as element(pki:template)
) as element(x509:req)

Summary

This function returns the request portion of the certificate template.

Parameters
template The certificate template from which to extract the request portion.

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";

    pki:template-get-request(pki:get-template-by-name("test"))

    (: Returns the request portion of the "test" template. :)
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.