Click here to Skip to main content
15,891,136 members
Home / Discussions / C#
   

C#

 
AnswerRe: books on c# 2 Pin
Christian Graus7-May-07 1:24
protectorChristian Graus7-May-07 1:24 
GeneralRe: books on c# 2 Pin
Dave Kreskowiak7-May-07 4:23
mveDave Kreskowiak7-May-07 4:23 
AnswerRe: books on c# 2 Pin
Vega027-May-07 5:33
Vega027-May-07 5:33 
QuestionReading Excel Sheets in C# Pin
meeram3956-May-07 23:09
meeram3956-May-07 23:09 
AnswerRe: Reading Excel Sheets in C# Pin
blackjack21506-May-07 23:15
blackjack21506-May-07 23:15 
GeneralRe: Reading Excel Sheets in C# Pin
meeram3956-May-07 23:40
meeram3956-May-07 23:40 
GeneralRe: Reading Excel Sheets in C# Pin
Sk8tz7-May-07 0:01
professionalSk8tz7-May-07 0:01 
QuestionInstalling and unistalling client certificates to personal store Pin
blackjack21506-May-07 21:29
blackjack21506-May-07 21:29 
Hi.

I'm developing a client for a web service which requires SSL authentication(via https).

Normally certificates are installed manually by the the user. But I am assuming that many different users with many different certificates will use the same computer and I don't want to have all the certificates installed at a given time for security reasons.

What I want to do is to implement a mechanism so that the certificate used for authentication can be installed before the web method call and uninstalled afterwards. So I've written a couple methods to do this.

The problem is that the InstallCert method does not install the certificate, but the UninstallCert methods does what's supposed to do, assuming that the certificate in subject has previously been installed in the store(for now I do that manually).

Any clues?
Thanks a lot.


Relevant code below.

X509Store store_Personal = new X509Store(StoreLocation.CurrentUser);<br />
<br />
private void InstallCert(X509Certificate2 theCert)<br />
        {<br />
            store_Personal.Open(OpenFlags.ReadWrite);<br />
            store_Personal.Add(theCert);<br />
            store_Personal.Close();<br />
        }<br />
<br />
        private void UnistallCert(X509Certificate2 theCert)<br />
        {<br />
            store_Personal.Open(OpenFlags.ReadWrite);<br />
            store_Personal.Remove(theCert);<br />
            store_Personal.Close();<br />
        }

AnswerRe: Installing and unistalling client certificates to personal store Pin
blackjack21506-May-07 23:11
blackjack21506-May-07 23:11 
Questionusing tree view node to select tabds Pin
rkherath6-May-07 21:17
rkherath6-May-07 21:17 
AnswerRe: using tree view node to select tabds Pin
Ch_Shahzad iqbal7-May-07 0:02
Ch_Shahzad iqbal7-May-07 0:02 
QuestionHow to bind multiple tables to a binding navigator Pin
Phoenix1016-May-07 20:46
Phoenix1016-May-07 20:46 
GeneralRe: How to bind multiple tables to a binding navigator Pin
rkherath6-May-07 21:21
rkherath6-May-07 21:21 
GeneralRe: How to bind multiple tables to a binding navigator Pin
Phoenix1016-May-07 21:32
Phoenix1016-May-07 21:32 
GeneralHow to bind multiple tables to a binding navigator Pin
Phoenix1017-May-07 5:29
Phoenix1017-May-07 5:29 
AnswerRe: How to bind multiple tables to a binding navigator Pin
Ch_Shahzad iqbal7-May-07 0:33
Ch_Shahzad iqbal7-May-07 0:33 
QuestionAdding item from application to local mobile calendar Pin
chloe_hhi6-May-07 20:46
chloe_hhi6-May-07 20:46 
QuestionForm Closing Validation Problem Pin
PriteshMalvan6-May-07 19:55
PriteshMalvan6-May-07 19:55 
AnswerRe: Form Closing Validation Problem Pin
Sandeep Akhare6-May-07 20:24
Sandeep Akhare6-May-07 20:24 
GeneralRe: Form Closing Validation Problem Pin
Jaiprakash M Bankolli6-May-07 22:16
Jaiprakash M Bankolli6-May-07 22:16 
GeneralRe: Form Closing Validation Problem Pin
Sandeep Akhare6-May-07 22:25
Sandeep Akhare6-May-07 22:25 
AnswerRe: Form Closing Validation Problem Pin
Jaiprakash M Bankolli6-May-07 22:14
Jaiprakash M Bankolli6-May-07 22:14 
AnswerRe: Form Closing Validation Problem Pin
AFSEKI7-May-07 1:28
AFSEKI7-May-07 1:28 
AnswerRe: Form Closing Validation Problem Pin
AFSEKI9-May-07 0:42
AFSEKI9-May-07 0:42 
Questionneed help with remoting limitation pls Pin
neodeaths6-May-07 19:35
neodeaths6-May-07 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.