Bouncy Castle Certificate ExtensionsIs Self Signed Method
Determines whether the specified certificate is self-signed.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the certificate is self-signed; otherwise, .
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public static bool IsSelfSigned(
this X509Certificate certificate
)Parameters
- certificate X509Certificate
- The certificate to check.
Return Value
Booleanif 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.