Use the Sign method, to sign necessary data by using the private key, which is associated with the certificate. The function returns the signature of the specified data. If the certificate key is not private (Key.IsPrivate = False), the exception will be raised.
The Padding parameter can be equal only to pmPKCS1 or pmPSS values.
Use this signature to verify the data integrity. If the data substitution is possible when the data is transferred, it is required to transfer the data signature along with the data itself. In this case the receiver must have the public constituent of the key, that is used to verify the signature.
To verify the signature, use the VerifySign method.
Note: If the Ready property is False, the certificate will be automatically loaded.