admin.appserverGetSslRequireClientCertificate( config as element(configuration), appserver-id as (Number|String) ) as Boolean
This function returns true if a client certificate is required for the specified App Server. Otherwise, it returns false.
http://marklogic.com/xdmp/privileges/admin/app-server
http://marklogic.com/xdmp/privileges/admin/app-server/{id}
const admin = require('/MarkLogic/admin.xqy'); const config = admin.getConfiguration() admin.appserverGetSslRequireClientCertificate(config, admin.appserverGetId(config,null, "Docs")) //Returns true if a client certificate is required for the "Docs" App Server.//Otherwise, false.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.