Dkim |
public DkimSigner( Stream stream, string domain, string selector, DkimSignatureAlgorithm algorithm = DkimSignatureAlgorithm.RsaSha256 )
Exception | Condition |
---|---|
ArgumentNullException | stream is null. -or- domain is null. -or- selector is null. |
FormatException | The file did not contain a private key. |
IOException | An I/O error occurred. |
Creates a new DkimSigner.
Security Note |
---|
Due to the recognized weakness of the SHA-1 hash algorithm and the wide availability of the SHA-256 hash algorithm (it has been a required part of DKIM since it was originally standardized in 2007), it is recommended that RsaSha1 NOT be used. |