Skip to content

IsValidForHost Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

bool IsValidForHost(string hostname) ​

csharp
bool IsValidForHost(string hostname)

Checks if the certificate is valid for the specified target hostname.

Parameters ​

NameDescription
hostnameThe target hostname to validate against (e.g., "expired.badssl.com").

Returns ​

True if the certificate is valid for the hostname; otherwise, false.