title: Joining GoDaddy-issued .spc and .key files into a complete .pfx / .cer certificate
body: <p>I have a GoDaddy-issued code signing certificate in a <code>.spc</code> file. Also, I have a private key in <code>.key</code> file. The code signing has been issued some 13 months ago, then it expired and was renewed with GoDaddy. During the renewal process no private key was requested and just a new <code>.spc</code> file was issues.</p>
  
  <p>Now I'm facing the problem of joining the original private key file with the issues certificate to form a <code>.pfx</code> (or <code>.cer</code>?) file suitable for installation into the Windows certificate store.</p>
  
  <p>The command I'm trying is:</p>
  
  <pre><code>openssl.exe pkcs12 -inkey my.key -in my.spc -out my.pfx -export
  </code></pre>
  
  <p>However, I'm getting an error message that reads <em>“No certificate matches private key”</em>.</p>
  
  <p>I've followed <a href="https://stackoverflow.com/questions/553149/is-it-possible-to-convert-an-ssl-certificate-from-a-key-file-to-a-pfx/660474#660474">this answer on SO</a> to verify the <code>.key</code> file is a valid private key. However, when I try to verify that <code>.spc</code> is a valid certificate, I just get </p>
  
  <pre><code>unable to load certificate 
  5436:error:0906D06C:PEM routines:PEM_read_bio:no start line:.\crypto\pem\pem_lib.c:650:Expecting: TRUSTED CERTIFICATE
  </code></pre>
  
  <p>What's the correct way of producing an <code>.pfx</code> file from my inputs? I'm using OpenSSL 0.9.8k.</p>