Re: How can I CryptSignMessage() using certificate stored in file?

From: Sergio Dutra [MS] (sergiod_at_online.microsoft.com)
Date: 10/28/03


Date: Tue, 28 Oct 2003 08:49:39 -0800

You can import a SPC and PVK using the pvkimprt.exe tool from
http://www.microsoft.com/downloads/details.aspx?FamilyID=F9992C94-B129-46BC-B240-414BDFF679A7&displaylang=EN.
To convert your .CER file to a .SPC file, use the cert2spc.exe tool from the
platform SDK.

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Nickolay Sonin" <soniko@mail.ru> wrote in message
news:cfc42b55.0310270756.3372b984@posting.google.com...
> I need a way to do CryptSignMessage() without certificate from system
> storage but from file. I open it using
> CertOpenStore(CERT_STORE_PROV_FILENAME_A) but dont know how to use
> proper .PVK file (i have .CER and .PVK files both).


Relevant Pages

  • Re: Problem verifying publisher
    ... success unfortunately. ... I managed to export my certificate to a PKCS#12 file. ... I then converted the .cer file to a .spc file. ...
    (microsoft.public.windows.server.security)
  • Re: Problem verifying publisher
    ... I managed to export my certificate to a PKCS#12 file. ... I then converted the .cer file to a .spc file. ... capability even though the certificate is marked with code signing. ...
    (microsoft.public.windows.server.security)
  • Re: Help How to add publisher condition ??
    ... Sign your assembly with the .SPC file ... already have a private key to embed in the certificate. ... > of my test assembly and see by implementing that publisher certificated ... You are not allowed to sign assemblies that you do not own and ...
    (microsoft.public.dotnet.security)
  • Re: .Cab Signing problem
    ... You can create your own demo certificate and certificate of ... authority or use a valid certificate and certificate of authority from ... It assumes that you have previously generated or have a valid certificate ... Since you already have a .pvk file, you only need to create the .spc file ...
    (microsoft.public.dotnet.languages.vc)