Home All Groups Group Topic Archive Search About

Installing CA-certificate in certificate-store from .NET

Author
29 Sep 2005 4:00 PM
Helge Jensen
I've been looking at google for a method of adding a certificate to the
cert-store from C#. I would prefer something that doesn't popup
dialog-boxes -- but I'll accept just about anything.

I looked at certmgr.exe, but it would be rather sad to have to start
that in a seperate process -- and it seems to come with the visual.net
installation.

I also found some references to WSE, but got a bit confused about WSE
versions 1, 2 and 3, and whether WSE1.0 actually provided methods for
updating the store -- all the exaples seemed to read from it.

Anyone got any good pointers to articles, code, ...?

--
Helge Jensen
  mailto:helge.jen***@slog.dk
  sip:helge.jen***@slog.dk
               -=> Sebastian cover-music: http://ungdomshus.nu <=-

Author
29 Sep 2005 7:25 PM
Dominick Baier [DevelopMentor]
Hello Helge,

not sure about WSE - may be worth investigating more on the X509Store class
(IIRC that was the name).

....but the "normal" way prior to .net 2.0 is using CAPICOM - a COM wrapper
around the CryptoAPI. You have to download that from microsoft.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> I've been looking at google for a method of adding a certificate to
> the cert-store from C#. I would prefer something that doesn't popup
> dialog-boxes -- but I'll accept just about anything.
>
> I looked at certmgr.exe, but it would be rather sad to have to start
> that in a seperate process -- and it seems to come with the visual.net
> installation.
>
> I also found some references to WSE, but got a bit confused about WSE
> versions 1, 2 and 3, and whether WSE1.0 actually provided methods for
> updating the store -- all the exaples seemed to read from it.
>
> Anyone got any good pointers to articles, code, ...?
>
Author
29 Sep 2005 8:07 PM
Helge Jensen
Dominick Baier [DevelopMentor] wrote:
> Hello Helge,
>
> not sure about WSE - may be worth investigating more on the X509Store
> class (IIRC that was the name).
>
> ...but the "normal" way prior to .net 2.0 is using CAPICOM - a COM
> wrapper around the CryptoAPI. You have to download that from microsoft.

Thanks for the pointers, atleast I have a few new words to feed into
google :)

--
Helge Jensen
  mailto:helge.jen***@slog.dk
  sip:helge.jen***@slog.dk
               -=> Sebastian cover-music: http://ungdomshus.nu <=-