MarkLogic Server 11.0 Product Documentation
pki:insert-trusted-certificates

pki:insert-trusted-certificates(
   $certs as xs:string
) as xs:unsignedLong*

Summary

This function inserts PEM-encoded certificates into the database without checking for a matching certificate request. This allows you to insert temporary certificates and those from new Certificate Authorities.

Parameters
certs One or more PEM-encoded certificates to be inserted into the database.

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:insert-trusted-certificates(
     xdmp:document-get(
         "c:\TrustedCertificates\Trusted_cert.cer", 
         <options xmlns="xdmp:document-get"><format>text</format></options>))

  (: Inserts the PEM-encoded trusted certificate from the Trusted_cert.cer file into
     the database. :)
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy