C# Класс Thinktecture.IdentityModel.Utility.X509Certificates

Helper class to retrieve certificates from configuration
Показать файл Открыть проект

Открытые методы

Метод Описание
DownloadSslCertificate ( string machineName, int port ) : X509Certificate2

Downloads the SSL certificate from an SSL site.

GetCertificate ( string name ) : X509Certificate2

Retrieves a named certificate.

GetCertificate ( string name, string password ) : X509Certificate2

Retrieves a named certificate.

GetCertificateFromStore ( StoreLocation location, StoreName name, X509FindType findType, object value ) : X509Certificate2

Retrieves a certificate from the certificate store.

GetCertificateFromStore ( string subjectDistinguishedName ) : X509Certificate2

Retrieves a certificate from the current user / personal certificate store.

GetCertificateFromStore ( string subjectDistinguishedName, StoreLocation location ) : X509Certificate2

Retrieves a certificate from the specified personal certificate store.

Приватные методы

Метод Описание
GetReference ( string name ) : CertificateReferenceElement

Retrieves a named certificate reference.

Описание методов

DownloadSslCertificate() публичный статический Метод

Downloads the SSL certificate from an SSL site.
public static DownloadSslCertificate ( string machineName, int port ) : X509Certificate2
machineName string Name of the machine.
port int The port.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificate() публичный статический Метод

Retrieves a named certificate.
public static GetCertificate ( string name ) : X509Certificate2
name string The name.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificate() публичный статический Метод

Retrieves a named certificate.
public static GetCertificate ( string name, string password ) : X509Certificate2
name string The name.
password string The password.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() публичный статический Метод

Retrieves a certificate from the certificate store.
public static GetCertificateFromStore ( StoreLocation location, StoreName name, X509FindType findType, object value ) : X509Certificate2
location StoreLocation The location.
name StoreName The name.
findType X509FindType Type of the find.
value object The value.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() публичный статический Метод

Retrieves a certificate from the current user / personal certificate store.
public static GetCertificateFromStore ( string subjectDistinguishedName ) : X509Certificate2
subjectDistinguishedName string The subject distinguished name of the certificate.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromStore() публичный статический Метод

Retrieves a certificate from the specified personal certificate store.
public static GetCertificateFromStore ( string subjectDistinguishedName, StoreLocation location ) : X509Certificate2
subjectDistinguishedName string The subject distinguished name of the certificate.
location StoreLocation The store location.
Результат System.Security.Cryptography.X509Certificates.X509Certificate2