X509Certificate2ExtensionsVerifyCertificateBySMimeA Method

Verifies a S/MIME certificate using SMIMEA DNS records.

Definition

Namespace: ARSoft.Tools.Net
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public static bool VerifyCertificateBySMimeA(
	this X509Certificate2 certificate,
	string? mailAddress = null,
	X509Chain? chain = null,
	IDnsSecResolver? resolver = null
)

Parameters

certificate  X509Certificate2
The certificate to be verified.
mailAddress  String  (Optional)
The mail address which should be verified. If null is specified, the mail address of the certificate will be used.
chain  X509Chain  (Optional)
The certificate chain which should be used for verification.
resolver  IDnsSecResolver  (Optional)
The DNSSec resolver which should be used to resolve the SMIMEA dns records. If null is specified, a self validating stub resolver will be used.

Return Value

Boolean
true, of the certificate can be verified by SMIMEA dns records; otherwise, false

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509Certificate2. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also