c# - Use X509Certificate without requiring passphrase -


I have a certificate that I need to use to access the web service. The problem is that whenever I try to use the X509 certificate, it asks for a passphrase (pin). Is there a way to make passphrase available directly without popping up the same window each time?

I hate this window

certificate obtheher Technologies uses dongles, if it is any help, the code used to get the certificate is here:

  X509 store store = new X509Store ("MY ", StoreLocation.CurrentUser); Store. Open (OpenFlag.read only :: OpenFlag.exeXing only); X509Certificate2Collection Archive = (X509Certificate2Collection) store.Certificates; If (collection.Count! = 0) userCert = collection [0]; // Everything is okay here   

And here's where I use the certificate:

  http webbrick rake = (HTTP webburb) WebRequest.Create (New Yuri)); Req.ClientCertificates.Add (userCert); // Add the certificate I just got // ... WebResponse ret = req.GetResponse (); // Here is the place where I ask for my passphrase  
= "post-text" itemprop = "text">

The certificate's private key is stored on the Oberter Token This certificate private key Applying the user to enter the PIN is to apply. It is designed and can not be overridden.

Comments