Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin:cluster-set-xdqp-ssl-private-key

admin:cluster-set-xdqp-ssl-private-key(
   $config as element(configuration),
   $value as xs:string
) as element(configuration)

Summary

This function sets the SSL private key for secure communication between this cluster and foreign clusters.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
value The private SSL key for this cluster.

Required Privileges

http://marklogic.com/xdmp/privileges/admin/cluster

Example



xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

  let $cfg := admin:get-configuration()
  let $key := "-----BEGIN PRIVATE KEY-----
       MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDqFhZh2hYkxhWz
	   8PjeI4fUJqaRLp98BJ0WugkUM1gDc0lU0fwoOpb3mpP91CtYc53/RICWrPZb1tYR
	   wrU3UShSWKWUExZuh+rSpMQPtjt9DxDdV1iVY4oZTuGEz/A6Jp8M0+/qHtEFuvAa
	   DMB1Mca9j5PgwcAbtvskogFWINRgcSCsf5iy476WNSXXkcwh+8fXcii/c9wppxhZ
	   zRffHiJQx9q2W8zGF4P7OkaSuMNNgumVc8IXu7Itdp6+Ity+r06lcwTGMNUWQGN2
	   JmsFIhPmUZYhT2+sa8OWZMXO1SC1onsnxQOxFhvdQk10+mtQZw6VrxRUDs02DuGz
       2DmaS8GXAgMBAAECggEACu7vKrDZ+eu6lcX6ib2VGYaYnw1Ta6J3h9k2lVf0k2yu
	   DyUjpuldpcD1ipR/VclIpuSXMPJxK0b0hq3Wcvf6byYuzaS6ln0Irb/+XFGBo8yx
	   V/U9cPTOPXJevCpOKRkmsp2vhfrcfm0Fy+Gul4q0oqPzHztNcr3wKvzaHSC5aqun
       Hrxw+OUDh+9JN2k4/3JgWSzk3+GXd6tnsRjyxBquyREgLsnRWekveY/QoiSQlFlf
	   F8WsQkdxV9crhWfMJW27oqyrxZnCAheBxWKyG2EX+niUK0UhWRbVg1BWgUmqRsGw
	   XChu+l5Nq41UbokRQ3FtHPEEuW+pxAeEH707+d8EWQKBgQD8/zliqjVlHqsNtJjl
	   sm1nWPRlKPGulD1dpncMvo3w4yvjTgXxaN2KLahWjSEu0IrqTxUNnzSxnHFXTX16
	   NztpeucJtvqPmDQ/3Nfsns/fxW+iz0zlUP/6Ecshb7gDcm5ojEUg5IymuJv4XwTx
	   ubtxsgugHVKoAs/Ns2/rtAD34wKBgQDs3WZZt47zm0QUu6YnMfibk4vkzxbDrsOw
	   HusBQQ8SwYAYiIixp3KQHL7/1PwhP9ZW/mG2kM5J+O7rOoJL7em6ermbXFxbaq9m
	   2T8l04ddOoLj3GWtYYLRyQY2bPuHxoKCsCyTiBoONAnF6u4MZ7HWu3vXB54FRzYI
       cFyemK51vQKBgAyC7qqTckqK5ripyrnpRgHLY2KxUKpqiFJeThriPZDBG0WFcUPM
       BNC1i1KkbhSrmYMW4BqpWejCrNQ9b8wgeR6xRkWzt9ZsF4FlAYShIfSWBfxONiZN
       CCusv5fqt3XsLcubzDthMhd4n7X7tPnjToLD5FFJwfGvGem5SvqkDzwzAoGBAIbD
       ZKMw24VgVnjRVrRAKykg5lv1Mwd8nFvNC3n4MQJD04Sh0dv54CV8JXNbE2Q7dNCk
       BKYhdy0BE7YD4PQgVXXCs21gPC/K4CbM/a+gzQhO7P+FetgNfaesDvvSP729RK3k
       XEhIDEL+enz/sBagvL7mhowOCmsIXAarHxcg2UmlAoGBAJBppoW+ANoxKCwlfCJM
	   ft6rhLJIpomv86TcqFwcbAPs0ziP17iWhRP6CFwKG2h/Abq153y9nPLFwtX/Eltv
	   +fGbtmb3CoiMvc9eK5u7UFovFF3okE6GeQa2sOBrJjMzUBIJNQUip2GzoBthnQGP
	   1q6AId8Tj7SiVCLM5CIluImS
       -----END PRIVATE KEY-----"
  return admin:cluster-set-xdqp-ssl-private-key($cfg, $key)

  (: Sets the private SSL key for the cluster. Use admin:save-configuration to
  save the changes to the configuration or pass the configuration to other
  Admin API functions to make other changes. :)
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.