Last post Mar 11, 2012 08:09 AM by hamid.darabi
Feb 26, 2012 07:19 AM|hamid.darabi|LINK
I want to develope an application to send emails which are signed using digital certificate while the email content (+attachements) is encrypted. I am using PKI.
I appreciate anwsers that do not offer me to use another system or security solution.
Feb 26, 2012 09:09 AM|waelouf|LINK
Check out these two articles with examples:
Feb 26, 2012 09:16 AM|waelouf|LINK
OR another simple way:
Mar 06, 2012 11:56 AM|hamid.darabi|LINK
Thank you for help. I used your links and also I found other information about x509certificate classes. finally I have something like this:
In run time, After certificate selection, normally, their should be a dialog box to ask me my PIN as signer's private key. Unfortunately the dialog does not open.
X509Store store = new X509Store("MY",StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
X509Certificate2Collection collection = (X509Certificate2Collection)store.Certificates;
X509Certificate2Collection fcollection = (X509Certificate2Collection)collection.Find(X509FindType.FindByTimeValid,DateTime.Now,false);
X509Certificate2Collection scollection = X509Certificate2UI.SelectFromCollection(fcollection, "Test Certificate Select","Select a certificate from the following list to get information on that certificate",X509SelectionFlag.MultiSelection);
And at last I have this error message: "NO PIN was presented to the smart card"
I don't know how to pass signer's PIN or open PIN dialog box before firing ComputeSignature method.
Mar 11, 2012 08:09 AM|hamid.darabi|LINK
Free open source component for .net developers with many features: