I have following files:
- root.crt
- intermediate1.crt
- intermediate2.crt
- privatekey.pem
I tried to generate a pfx file with openssl
openssl pkcs12 -export -out certificate.pfx -inkey privatekey.pem -in root.crt -certfile intermediate1.crt -certfile intermediate2.crt
Which gives me following error:
No cert in -in file 'root.crt' matches private key
68310000:error:05800074:x509 certificate routines:X509_check_private_key:key values mismatch:crypto\x509\x509_cmp.c:405:
Is there something wrong with my private key?