Re: verify a certificate

From: Miljan Mitrovic (mmix@ptt.yu)
Date: 03/24/03


From: "Miljan Mitrovic" <antispam:mmix@ptt.yu>
Date: Mon, 24 Mar 2003 10:49:56 +0100


You cannot do it from built in classes (which is BTW a great minus for .net
framework).
You could download CAPICOM from ms site and import it through Interop, since
its a COM its very easy... CAPICOM is a COM wrapper for CryptoAPI DLL, so
its way better to use it then to manually import those functions through
Interop like I had to do.. In capicom you have a class for certificates, you
can use it to verify certificate chain (which checks for the stuff you
mentioned).

Greetings,
Miljan.

"Frank" <lgd94047271@msn.cn> wrote in message
news:37f001c2f1ae$733d35b0$3401280a@phx.gbl...
> If a customer send his certificate to me (with his public
> key),
> how can I verify that it is the right certificate, if the
> certificate was changed by others by using the root
> certificate installed in my system.I mean I have the root
> certificate that used the to creat his custom certificate.
> How can I do it in C#?
> Thank you!!!



Relevant Pages

  • Re: Newbie: Getting my head around Certificates
    ... and does not ship with Windows. ... CAPICOM as part of your application. ... To retrieve the server SSL certificate used by IE, ... > .Display() method of the ICertificate2 interface. ...
    (microsoft.public.platformsdk.security)
  • Re: Certificate Install - rundll32.exe cryptext.dll
    ... I've used CAPICOM and have progressed a little further. ... Now the "Root Certificate Store" Do you want to ADD the ...
    (microsoft.public.win2000.security)
  • RE: IEEE 802.1x & EAP-TLS design based on Windows 2000 Server
    ... CAPICOM is not installed - if that's a blocker, it looks like you'll need to ... For SSL certificate mapping to work for AD principals, ... > That's not crazy at all - in fact, for standalone CAs, certreq, xenroll, ... You want to use client certificates, ...
    (Focus-Microsoft)
  • Re: Get Certificate
    ... I used this CAPICOM in my .NET code and it worked, I god my data signed at ... send af signed mail:o) Great!! ... password for the certificate. ... CAPICOM or what do you think i shoul do? ...
    (microsoft.public.dotnet.security)
  • Re: possibly capicom bug?
    ... I'm sure that it's not a bug. ... Main program of CAPICOM Store sample. ... > both version of windows! ... > certificate in an English version windows. ...
    (microsoft.public.platformsdk.security)