X509Certificate.getDnsNames

string[] getDnsNames() const

Returns the DNS names from the Subject Alternative Name extension.

This is commonly used for TLS hostname verification.

Returns

An array of DNS names.