I have following files:
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?
The root.crt was not matching with the private key. After using the correct crt file it worked.
Private key specified with '-inkey file' should match the cert specified with '-in file'.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.