Loading TOC...

pki:insert-signed-certificates

pki:insert-signed-certificates(
   $certs as xs:string
) as empty-sequence()

Summary

This function inserts one or more PEM-encoded signed certificates into the database. The signed certificates are matched up against previously generated certificate requests and any previous certificate is replaced. If there is no matching certifcate request for the specified certificate, the certificate is not inserted into the database.

Parameters
$certs One or more PEM-encoded signed 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-signed-certificates(
     xdmp:document-get(
         "c:\SignedCertificates\Signed_cert.cer", 
         <options xmlns="xdmp:document-get"><format>text</format></options>))

  (: Inserts the PEM-encoded signed certificate from the Signed_cert.cer file into
     the database. :)
  

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