I’d like to add a fields to a session authentication to hold a SSL certificate and a private key, something like this:
{
computed: false,
key: 'certificate',
required: true,
label: 'Certificate',
type: 'string',
helpText:
'Copy the text from the certificate file. It should resemble:\n`-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----`',
},
{
computed: false,
key: 'private_key',
required: true,
label: 'Private Key',
type: 'string',
helpText:
'Copy the contents of the private-key file. It should resemble:\n\n`-----BEGIN RSA PRIVATE KEY-----\n...\n-----END RSA PRIVATE KEY-----`',
},
Assuming that a user pasted the value into the field:
-----BEGIN CERTIFICATE-----
REDACTED
-----END CERTIFICATE-----
How would line breaks be represented in bundle.authData.certificate and bundle.authData.private_key?