Openssl: No certificate matches private key
This used to work on my last computer, but I created a CSR and uploaded it to Apple and it returned a valid distribution certificate. But when I run Openssl to try and create the p12 file, I keep getting the error:
"no certificate matches private key".
My batch file looks like this:
set OPENSSL_CONF=C:\OpenSSL-Win32\bin\openssl.cfg
set RANDFILE=.rnd
openssl x509 -in ios_distribution.cer -inform DER -out developer_identity.pem -outform PEM
pause
openssl pkcs12 -export -inkey mykey.key -in developer_identity.pem -out myfile.p12
pause
I've tried just about everything, and I'm seriously stuck. Can anyone help?
