
xdmp:rsa-generate( $options as (element()|map:map)? ) as xs:string+
Generate a new RSA public/private key pair. Returns a list of two PEM encoded strings. The first is the private key, the second is the public key.
(: Using an options element :)
xdmp:rsa-generate(
<options xmlns="ssl:options">
<key-length>2048</key-length>
</options>)
(: Using an options map :)
xdmp:rsa-generate(map:map() => map:with("keyLength", 2048))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.