pki:insert-signed-certificates( $certs as xs:string ) as empty-sequence()
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. |
(: 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. :)