I need to convert a private key and a cert to a .p12 file. I got a valid certificate, which is also correct formatted. I got the openssl v1.1.1s.
server.crt
-----BEGIN CERTIFICATE-----
THE CERT
-----END CERTIFICATE-----
server.key
-----BEGIN RSA PRIVATE KEY-----
The Private Key
-----END RSA PRIVATE KEY-----
I tried to run this openssl command:
openssl pkcs12 -export -in server.crt -inkey server.key -out certificate.p12
And got this error:
unable to load certificates