X509Certificate.hasExtension

bool hasExtension(string oid) const pure nothrow @safe

Checks if an extension with the given OID exists.

Parameters

oidThe extension OID in dotted-decimal form.

Returns

True if the extension exists.