admin.appserverSetSslCertificateTemplate( config as element(configuration), appserver-id as (Number|String), value as (Number|String) ) as element(configuration)
This function sets an SSL certificate template for the specified App Server.
http://marklogic.com/xdmp/privileges/admin/app-server-security
http://marklogic.com/xdmp/privileges/admin/app-server-security/{id}
http://marklogic.com/xdmp/privileges/admin/group-security
http://marklogic.com/xdmp/privileges/admin/group-security/{id}
let pki = require("/MarkLogic/pki.xqy") let admin = require("/MarkLogic/admin.xqy") let config = admin.getConfiguration() let appServer = admin.appserverGetId(config, admin.groupGetId(config, "Default"), "myAppServer") let tid = pki.templateGetId(fn.head(pki.getTemplateByName("temporary"))) admin.appserverSetSslCertificateTemplate( config, appServer, tid)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.