Skip to content

Instantly share code, notes, and snippets.

@ableasdale
Created August 14, 2018 17:13
Show Gist options
  • Save ableasdale/f4f5c448e7828aabb80c2f99a1122c1a to your computer and use it in GitHub Desktop.
Save ableasdale/f4f5c448e7828aabb80c2f99a1122c1a to your computer and use it in GitHub Desktop.
MarkLogic: Insert Trusted Certificate
xquery version "1.0-ml";
import module namespace pki = "http://marklogic.com/xdmp/pki" at "/MarkLogic/pki.xqy";
pki:insert-trusted-certificates(
xdmp:document-get("/tmp/rootca.cer",
<options xmlns="xdmp:document-get">
<format>text</format>
</options>)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment