Glad to hear you were able to get the script to successfully validate! So you’ve base64 encoded your cert into the secure credentials value field right? Note, it can take only 3000 characters, so if the value is greater than that you’ll need to split the value and recombine in your script.
When accessing the value in your script, the newline characters will not be output if you use something like:
However, you will see
\n if you log the object:
When you did a base64 encoding of your cert, did you do something like this?
base64 cert.pem > base64_cert.pem
# should be one line without breaks
# decode to check that it worked
base64 -d base64_cert.pem > decoded_cert.pem
If you need to split the cert into several base64 encoded files, you can do something like this:
base64 cert.pem | split -C 2500
It will generate files up to 2500 characters in length and with names like xaa, xab, xac, etc.
Looking forward to hearing how that works for you!