When we add the Begin & End certificate information, should they be just the text, or should fill a 64 byte or 80 byte line?
-----BEGIN CERTIFICATE-----MIIDQ...
or
-----BEGIN CERTIFICATE----- MIIDQ...
I'm not clear on how the call will parse the PEM format.
Sincerely,
Mark Vollmer
------------------------------
Mark Vollmer
Developer, but does everything.
CV Systems, LLC
------------------------------
Original Message:
Sent: Fri April 28, 2023 02:40 PM
From: Eric Rossman
Subject: CSNDT34D 2pass error 8/181
I think I understand the problem. Both the cred_kdh and cred_krd parameters must be either DER encoded or PEM. It looks like you are passing bare Base64 encoded text instead of the PEM format:
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
Not all certificates will have that exact header and footer but will have something similar.
So, I believe you can either Base64 decode what you have to get the binary DER encoding or ensure that you are passing the full PEM-encoded certificates with the header and footer.
------------------------------
Eric Rossman
------------------------------