Re: Digital signatures in ZIP files
From: Matt Lyons [MSFT] (mattlyon@online.microsoft.com)
Date: 01/04/03
- Next message: Matt Lyons [MSFT]: "Re: how to change the web.config authorization section"
- Previous message: Matt Lyons [MSFT]: "Re: Permission Attributes"
- In reply to: Chris Morrison: "Digital signatures in ZIP files"
- Next in thread: Chris Morrison: "Re: Digital signatures in ZIP files"
- Reply: Chris Morrison: "Re: Digital signatures in ZIP files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Matt Lyons [MSFT]" <mattlyon@online.microsoft.com> Date: Fri, 3 Jan 2003 17:30:06 -0800
I don't know the ZIP file format, but support for certificates in v1.0 of
the .NET Framework is limited to single DER (and I think BER) encoded
certificates. If the cert is stored in some other way, such as a PKCS #7,
you can't just plug it directly into the X509Certificate class. I'm not
sure what you want to do with the certificate, but you might try using
interop with CAPICOM and see if that solves your problem. You could also
PInvoke to the CryptoAPI 2.0 functions.
-- Matt Lyons .NET Framework Security, http://www.amazon.com/exec/obidos/ASIN/067232184X [This posting is provided "AS IS" with no warranties, and confers no rights.] "Chris Morrison" <chris-[TRAP]morrison@dsl.[SPAM]pipex.com(Remove [TRAP] and [SPAM] to reply)> wrote in message news:u3N2Um4sCHA.2124@TK2MSFTNGP12... > I have developed a class in C# to extract ZIP files, but I am stumped on how > to deal with ZIP files which are digitally signed using X.509 Digital > Certificates. > > I have tried extracting the data from the ZIP files digital certificate > store into a byte array and use it to create an instance of the > System.Security.Cryptography.X509Certificates.X509Certificate class but it > throws an exception saying: Input data cannot be coded as a valid > certificate. > > If anyone has any pointers or suggestions, I'm really stuck on this one. > > Kind Regards, > > > Chris > >
- Next message: Matt Lyons [MSFT]: "Re: how to change the web.config authorization section"
- Previous message: Matt Lyons [MSFT]: "Re: Permission Attributes"
- In reply to: Chris Morrison: "Digital signatures in ZIP files"
- Next in thread: Chris Morrison: "Re: Digital signatures in ZIP files"
- Reply: Chris Morrison: "Re: Digital signatures in ZIP files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|