pki:get-trusted-certificate-ids() as xs:unsignedLong*
This function returns the ids of all of the trusted certificates in the Security 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:get-trusted-certificate-ids() => 5182918040410509551 14829635941505935843 17428733531660907126 1566218877500482981