C# Класс Tailspin.Surveys.Common.CertificateUtility

utility class to find certs and export them into byte arrays
Показать файл Открыть проект

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

Метод Описание
ExportCertificateWithPrivateKey ( X509Certificate2 cert, string &password ) : byte[]

Exports the cert supplied into a byte arrays and secures it with a randomly generated password.

FindCertificateByThumbprint ( StoreName storeName, StoreLocation storeLocation, string thumbprint, bool validationRequired ) : X509Certificate2

Finds the cert having thumbprint supplied from store location supplied

FindCertificateByThumbprint ( string thumbprint, bool validateCertificate ) : X509Certificate2

Finds the cert having thumbprint supplied defaulting to the personal store of currrent user.

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

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

Exports the cert supplied into a byte arrays and secures it with a randomly generated password.
public static ExportCertificateWithPrivateKey ( X509Certificate2 cert, string &password ) : byte[]
cert System.Security.Cryptography.X509Certificates.X509Certificate2
password string
Результат byte[]

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

Finds the cert having thumbprint supplied from store location supplied
public static FindCertificateByThumbprint ( StoreName storeName, StoreLocation storeLocation, string thumbprint, bool validationRequired ) : X509Certificate2
storeName StoreName
storeLocation StoreLocation
thumbprint string
validationRequired bool
Результат System.Security.Cryptography.X509Certificates.X509Certificate2

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

Finds the cert having thumbprint supplied defaulting to the personal store of currrent user.
public static FindCertificateByThumbprint ( string thumbprint, bool validateCertificate ) : X509Certificate2
thumbprint string
validateCertificate bool
Результат System.Security.Cryptography.X509Certificates.X509Certificate2