pki:get-certificates( $cert-id as xs:unsignedLong* ) as element(pki:certificate)*
This function returns the certificate data for the specified certificates.
Parameters | |
---|---|
cert-id | One or more certificate ids. |
(: 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:get-certificates( pki:get-trusted-certificate-ids()) [pki:authority = fn:true()] (: Returns all of the certificates generated by a certificate authority. :)