Click or drag to resize
MimeKit

BouncyCastleCertificateExtensionsIsSelfSigned Method

Determines whether the specified certificate is self-signed.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
public static bool IsSelfSigned(
	this X509Certificate certificate
)

Parameters

certificate  X509Certificate
The certificate to check.

Return Value

Boolean
if the certificate is self-signed; otherwise, .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type X509Certificate. 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).
Remarks
A certificate is considered self-signed if the subject and issuer names are the same.
See Also