I fixed this problem. I think because of the number of questions regarding this problem and the number of different solutions, others will benefit from the solution. Here:
I used the openssl
CLI program to convert the .p12 key file to a .pem key file. The trick is how the transformation happens.
First, I converted it using this command, and I had a problem as described in the question:
openssl pkcs12 -in key.p12 -out key.pem -nodes -clcerts
While the command below did the trick:
openssl pkcs12 -in key.p12 -out key.pem -clcerts
For more information, see the source I used: https://community.qualys.com/docs/DOC-3273
source share