Here is an example on MSDN ( click here )
I think the example requires no explanation, but here is an excerpt:
using System; using System.Security.Cryptography; using System.Security.Cryptography.X509Certificates; using System.IO; public class X509store2 { public static void Main (string[] args) {
source share