/// <summary>
 /// Instantiate X509Certificate2 from a given certificate store
 /// </summary>
 /// <param name="store"></param>
 /// <returns></returns>
 public X509Certificate2 GetCertificate(ICertificateStore store)
 {
     if (store == null)
     {
         throw new ArgumentNullException("store");
     }
     return(store.GetX509Certificate2());
 }