Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Programmatically installing certificates

Reply
Thread Tools

Programmatically installing certificates

 
 
Russ
Guest
Posts: n/a
 
      09-15-2005
Is there a way to build a program to import certificates into IE - in
place of using the import wizard? If so, where can I find the
documentation and samples? For C++ or C# please.

Thank you, Russ
 
Reply With Quote
 
 
 
 
Jeremy Chapman
Guest
Posts: n/a
 
      09-16-2005
Some general stuff to get you started:
Use capicom. If you don't have the dlls, you should be able to find it on
the microsoft site.

It's com, so you'll be able to import it into a .NET wrapper
Create a Capicom.Store object.

To open a store of certificates:
call the Open method of the Capicom.Store object
user = CAPICOM_CURRENT_USER_STORE,
store name = "my"
open mode = CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED |
CAPICOM_STORE_OPEN_EXISTING_ONLY

To list the certificates of an open store:
do a for each on the Certificates property (Collection of certificate
objects) of the object returned from the open method
The certificate object can be inspected by using the GetInfo method on a
Certificate object
parameter = CAPICOM_CERT_INFO_SUBJECT_SIMPLE_NAME will get its unique name

To import a certificate:
call the Load method of the object returned from the open method
storage type = CAPICOM_KEY_STORAGE_USER_PROTECTED

To remove a certificate
call the Remove method of the object returned from the open method
the remove method expects the subject simple name of the certificate


hope this helps
"Russ" <> wrote in message
news:...
> Is there a way to build a program to import certificates into IE - in
> place of using the import wizard? If so, where can I find the
> documentation and samples? For C++ or C# please.
>
> Thank you, Russ



 
Reply With Quote
 
 
 
 
Russ
Guest
Posts: n/a
 
      09-16-2005
Thank you Jeremy, I will investigate Capicom.

Russ

On Thu, 15 Sep 2005 17:00:50 -0700, "Jeremy Chapman" <>
wrote:

>Some general stuff to get you started:
>Use capicom. If you don't have the dlls, you should be able to find it on
>the microsoft site.
>
>It's com, so you'll be able to import it into a .NET wrapper
>Create a Capicom.Store object.
>
>To open a store of certificates:
>call the Open method of the Capicom.Store object
>user = CAPICOM_CURRENT_USER_STORE,
>store name = "my"
>open mode = CAPICOM_STORE_OPEN_MAXIMUM_ALLOWED |
>CAPICOM_STORE_OPEN_EXISTING_ONLY
>
>To list the certificates of an open store:
>do a for each on the Certificates property (Collection of certificate
>objects) of the object returned from the open method
>The certificate object can be inspected by using the GetInfo method on a
>Certificate object
>parameter = CAPICOM_CERT_INFO_SUBJECT_SIMPLE_NAME will get its unique name
>
>To import a certificate:
>call the Load method of the object returned from the open method
>storage type = CAPICOM_KEY_STORAGE_USER_PROTECTED
>
>To remove a certificate
>call the Remove method of the object returned from the open method
>the remove method expects the subject simple name of the certificate
>
>
>hope this helps
>"Russ" <> wrote in message
>news:.. .
>> Is there a way to build a program to import certificates into IE - in
>> place of using the import wizard? If so, where can I find the
>> documentation and samples? For C++ or C# please.
>>
>> Thank you, Russ

>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Certificates . Why?? help please Galadrial Computer Security 21 09-21-2007 09:08 PM
Are SSL certificates and x.509 certificates the same? n33470 ASP .Net Web Services 0 12-14-2005 03:30 PM
Windows 2000 and computer certificates =?Utf-8?B?am91c3Rl?= Wireless Networking 0 03-21-2005 10:31 AM
Securing Wireless Network w/ certificates and no user intervention? jsoupene@cox.net Wireless Networking 5 02-22-2005 09:51 PM
Self-issued certificates and commercial certificates. Lord Amoeba Computer Security 2 05-05-2004 01:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57