title: Windows 7 and Openssl: creating p12 file
body: <p>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 this error:</p>
  
  <pre><code>"no certificate matches private key".
  </code></pre>
  
  <p>My batch file looks like this:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I've tried just about everything, and I'm seriously stuck.  Can anyone help?</p>