Loading TOC...

xdmp.rsaGenerate

xdmp.rsaGenerate(
   options as Object?
) as Sequence

Summary

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.

Parameters
options

Options with which to customize this function. This function supports the following options:

keyLength
passPhrase

Example

  xdmp.rsaGenerate({keyLength:2048})

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