pki:insert-trusted-certificates( $certs as xs:string ) as xs:unsignedLong*
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. |
(: 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. :)