IX509CertificateDatabaseFindPrivateKeys Method

Finds the private keys matching the specified selector.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
IEnumerable<AsymmetricKeyParameter> FindPrivateKeys(
	ISelector<X509Certificate> selector
)

Parameters

selector  ISelectorX509Certificate
The match selector or to return all private keys.

Return Value

IEnumerableAsymmetricKeyParameter
The matching certificates.

Remarks

Searches the database for certificate records matching the selector, returning the private keys for each matching record.

See Also