public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location) { throw null; }
public void SetCertificate(System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.X509FindType findType, Object findValue) { }
public void SetCertificate(string subjectName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName) { }
public X509Store(System.Security.Cryptography.X509Certificates.StoreName storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.OpenFlags flags) { }
public X509Store(string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation) { }
public X509Store(string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.OpenFlags flags) : this(storeName, storeLocation) { Open(flags); }
/// <summary> /// Find a certificate in the Personal area of the cert store, by thumbprint /// </summary> /// <param name="theThumbprint"></param> /// <param name="theCertStoreName"</param> /// <returns></returns> private static System.Security.Cryptography.X509Certificates.X509Certificate2 FindCertByThumbprint(string theThumbprint, System.Security.Cryptography.X509Certificates.StoreName theCertStoreName, System.Security.Cryptography.X509Certificates.StoreLocation theCertLocation, bool SearchOnlyValidCerts) { System.Security.Cryptography.X509Certificates.X509Certificate2 theCert = null; System.Security.Cryptography.X509Certificates.X509Certificate2Collection allCerts; System.Security.Cryptography.X509Certificates.X509Store theStore = new System.Security.Cryptography.X509Certificates.X509Store(theCertStoreName, theCertLocation); theStore.Open(System.Security.Cryptography.X509Certificates.OpenFlags.ReadOnly); allCerts = theStore.Certificates.Find(System.Security.Cryptography.X509Certificates.X509FindType.FindByThumbprint, theThumbprint, SearchOnlyValidCerts); foreach (System.Security.Cryptography.X509Certificates.X509Certificate2 someCert in allCerts) { // take the first one found, it should be the only one matching the thumbprint anyway theCert = someCert; break; } if (null == theCert) { throw new System.Security.Cryptography.CryptographicException("Requested X509 certificate not found in requested store."); } return(theCert); }
internal X509Stores(StoreLocation location) { _location = location; }
public void SetScopedCertificate(string subjectName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, System.Security.Cryptography.X509Certificates.StoreName storeName, Uri targetService) { }
//addCertToStore(MyRootCAcert, StoreName.Root, StoreLocation.LocalMachine); //addCertToStore(MyCert, StoreName.My, StoreLocation.LocalMachine); public static bool addCertToStore(System.Security.Cryptography.X509Certificates.X509Certificate2 cert, System.Security.Cryptography.X509Certificates.StoreName st, System.Security.Cryptography.X509Certificates.StoreLocation sl) { bool bRet = false; try { X509Store store = new X509Store(st, sl); store.Open(System.Security.Cryptography.X509Certificates.OpenFlags.ReadWrite); store.Add(cert); store.Close(); } catch (Exception e) { Debug.WriteLine(e.Message); } return(bRet); }
public static System.Security.Cryptography.X509Certificates.X509Certificate2 LoadFromStoreCert(string subject, string storeName, System.Security.Cryptography.X509Certificates.StoreLocation storeLocation, bool allowInvalid) { throw null; }
public static Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions UseHttps(this Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions listenOptions, System.Security.Cryptography.X509Certificates.StoreName storeName, string subject, bool allowInvalid, System.Security.Cryptography.X509Certificates.StoreLocation location, System.Action <Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionAdapterOptions> configureOptions) => throw null;