X509Certificate.isSelfSigned

bool isSelfSigned() @property const

Checks if the certificate is self-signed (issuer equals subject).

Returns

True if the certificate appears to be self-signed.