I reviewed the old thread, "THE PRIVATE KEY IS NOT FORMATTED CORRECTLY WHEN SETTING UP SAM CERTIFICATE CREDENTIALS" answered by aLTeReGo in 2015. I am seeing the same or very similar issue, but the fix from '15 does not seem to work.
I am on an old system still in use for a bit. It is running Orion Platform 2015.1.2 and SAM 6.1.1. I was provided a PEM-format certificate file. When I import it, it leaves <pre> and </pre> tags at the front and end of the imported cert, then the -----BEGIN CERTIFICATE----- AND -----END CERTIFICATE----- marks inside of that. Sorry, but I am not able to get a screenshot from that system to here.
If a do not use a User Name on the Create New Credential screen, a red error pops up demanding I enter one. If I try to add the credential with no password, I get, "The private key is not formatted correctly or it is encrypted and the password is either wrong or missing. It is also possible that an error occurred during import."
I have tried following with no change in results:
- removing the <pre> and </pre> tags
- removing the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines
- removing both of the above
- changing -----BEGIN CERTIFICATE----- to -----BEGIN RSA PRIVATE KEY----- and -----END CERTIFICATE----- to -----END RSA PRIVATE KEY----- to match the solution from the old thread
Does anyone have other ideas? The user name is in 'domain\user' format, if that makes a difference.