title: No certificate matches private key while generating .p12 file
body: <p>I have successfully generated <code>.p12</code> file but I got a message which is a follows:</p>
  
  <pre><code>C:\OpenSSL-Win32\bin&gt;openssl pkcs12 -export -inkey mykey.key -in exported.pem -out myfile.p12
  </code></pre>
  
  <p>Loading 'screen' into random state - done
  <strong>No certificate matches private key</strong></p>
  
  <p>Could anyone tell me what is this error all about?</p>
  
  <p>Also, the size of the file <code>myfile.p12</code> is 0KB and when I tried to open it, I got the following message in a small window with OK button:</p>
  
  <p>`Invalid Public Key Security Object File</p>
  
  <p>This file is invalid for use as the following: Personal Information Exchange `</p>
  
  <p>Please clarify.</p>
  
  <p>Thanks</p>