Certificate Property
The certificate used for encryption or decryption.
Syntax
public var certificate: Certificate?
Remarks
This property specifies a certificate for encryption or decryption.
When calling Encrypt and EncryptionAlgorithm is set to an RSA or ECDH algorithm this property must be set to a public certificate of the recipient.
When calling Decrypt and the message was encrypted using an RSA or ECDH EncryptionAlgorithm this property specifies the certificate with private key used to decrypt the message.