private X509Certificate2 FindCertificate()
{
X509Store store = new X509Store(StoreName.My, System.Security.Cryptography.X509Certificates.StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly | OpenFlags.OpenExistingOnly);
return
store
.Certificates
.Cast<X509Certificate2>()
.Where(c => c.FriendlyName == Resources.EnableRemoteDesktop_FriendlyCertificateName)
.FirstOrDefault();
}