Re: CRL
From: Sergio Dutra [MS] (sergiod@online.microsoft.com)
Date: 03/31/03
- Next message: Lee Chapman: ""Request failed" exception using AppDomain.CreateInstanceFrom() unless running with "Full Trust" permission set"
- Previous message: Harold Putman: "Create DSA key from XML string"
- In reply to: Marcelo: "CRL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Sergio Dutra [MS]" <sergiod@online.microsoft.com> Date: Mon, 31 Mar 2003 07:59:19 -0800
There is no CRL object in any managed class. Through p-invoking, however,
you can call the Crypto APIs to do what you want.
You can load the CRL file into a CRL_CONTEXT through a call to
CryptQueryObject. From there you can go into the CRL_INFO portion of the
CRL_CONTEXT and iterate through the list of revocation entries. Each
revocation entry consists of the serial number of the certificate that was
revoked and the revocation date. So, just from this information, you can at
least list the serial numbers that were revoked.
If you wanted to associate those serial numbers with real certs, you would
have to have those certs around, so that you could then find them by serial
number and issuer (the issuer of the CRL has to be the same as the issuer of
the cert).
-- 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 "Marcelo" <sms2k@hotmail.com> wrote in message news:OA6gmCJ9CHA.2104@TK2MSFTNGP11.phx.gbl... > Hi, > > is it possible from C# to list all certificates and their revogation date > from a CRL file?? > > thanks in advance > > Marcelo > >
- Next message: Lee Chapman: ""Request failed" exception using AppDomain.CreateInstanceFrom() unless running with "Full Trust" permission set"
- Previous message: Harold Putman: "Create DSA key from XML string"
- In reply to: Marcelo: "CRL"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|