Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
0
Answer
Get certificate for USB Token (eToken, iKey1000)
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Guille
15y
10.8k
1
Reply
Dear,
I am developing an application to be signed XML documents, one way is through signing the repository of digital certificates for Windows.
But also must be able to sign the certificates that are in a USB token and my question is:
How can I get certificates that are in the USB token, for example, eToken, iKey1000
I am using this code.
SecureString oSecurePass = new SecureString ();
oSecurePass.AppendChar ( 'a');
oSecurePass.AppendChar ( 'b');
oSecurePass.AppendChar ( 'c');
oSecurePass.AppendChar ('1 ');
oSecurePass.AppendChar ('2 ');
oSecurePass.AppendChar ('3 ');
CspParameters csp = new CspParameters (1, "eToken Base Cryptographic Provider");
csp.KeyPassword = oSecurePass;
csp.Flags = CspProviderFlags.UseDefaultKeyContainer;
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider (csp);
rsa.CspKeyContainerInfo.UniqueKeyContainerName property and get the name, but I can not remove the digital certificate, also if there is more than one certificate only shows me one of them.
Thank you very much for your help.
Post
Reset
Cancel
Answers (
0
)
Next Recommended Forum
Help to retrieve values from web.config file urgent please
Update DataGridView when Wizard finishes