Signing a CAB file

G

Guest

Hi Guys,

This should be something simple or not possible at all, I have a ‘.pvk’ file
and I want to generate a corresponding .spc file, I have followed the
instructions on http://msdn2.microsoft.com/en-us/library/9sh96ycy.aspx but
failed to generate an adequate cet/spc file, following are the steps I follow.

1.I have received a valid .pvk from some formal issuer
2.I have used makecert –sk <%mycert.PVK%> <%resulting new .CER file name%>
3.cer2spc <%.CER file name%> <%resulting .SPC file name%>
4.Failed to use SIGNCODE.EXE to sign a .cab file with the received PVK file
and the generated SPC file, signcode.exe prompts the certificate is invalid
while writing the password.
5.Browsing the .CER file generated by makesert.exe I can see that this is a
‘demo’ certificate ( it expire on 2040 and it doesn’t include out authority )

How can I generate a valid SPC file ?
Is it possible to generate SPC files from a PVK file ?

Any help would be appreciated.
 
M

Marc Gravell

To quote from http://msdn2.microsoft.com/en-us/library/bfsktky3.aspx:
===
Certificate Creation Tool (Makecert.exe)
The Certificate Creation tool generates X.509 certificates for testing
purposes only.
===
Makecert is really not your route here. The issuer should have given you a
certificate to go with that pvk; the pvk is *just* the private key to the
certificate - it is fairly useless without the actual certificate.

Are you sure they didn't give you something else? a pfx perhaps?

Marc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top