Question

Add authentication fields to hold SSL certificate and private key

  • 19 January 2023
  • 0 replies
  • 55 views

Badge +1

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?


0 replies

Be the first to reply!

Reply