CertificateValidate Method (CertificateStore)
Checks if the certificate is valid.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public CertificateValidationFlags Validate(
	CertificateStore extraStore
)

Parameters

extraStore
Type: MailBee.SecurityCertificateStore
A reference to the additional store of certification authorities, or a null reference (Nothing in Visual Basic) if only the system store should be used.

Return Value

Type: CertificateValidationFlags
A bitwise combination of CertificateValidationFlags indicating criteria the validation failed for, or None if the certificate is valid.
Exceptions
ExceptionCondition
MailBeeCertificateExceptionCryptographicException occurred during processing the certificate data.
MailBeeCertificateWin32ExceptionWin32 returned an error during processing the certificate data.
Remarks
You may get IsUntrustedRoot value returned by this method even if you know the certificate is trusted. This may happen if the certification authority (CA) which issued the given certificate is not present in the system CA store. This often happens with ASP.NET applications because ASP.NET user by default has only a few CA's in its system store. You can either add more CA's there or export your CA (one or more) into a file and use it as extraStore. See ASP.NET S/MIME demo projects shipped with the product for more details.
Note Note
This method is not available in .NET Standard 2.0 and newer (because it relies on Win32 API). Use Validate(X509Certificate2Collection) instead.
See Also