MarkLogic 10 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. :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy