MailBee.NET Objects 4.0

Certificate.HasPrivateKey Property

Gets whether the certificate has a private key.

public bool HasPrivateKey {get;}

Property Value

true if certificate includes the private key; otherwise, false.

Remarks

Certificates with private key can be using for all S/MIME operations (signing, encryption, checking a signature, decryption). Public certificates (without private key) can only be used for encryption and checking a signature.

Example

The example is available in Certificate topic.

See Also

Certificate Class | MailBee.Security Namespace | PublicKey