 | BouncyCastleCertificateExtensionsIsSelfSigned Method |
Determines whether the specified certificate is self-signed.
Namespace: MimeKit.CryptographyAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntaxpublic 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