IsCertificateForHostname (open)

Returns whether a decoded certificate is valid for a certain hostname, also considering wildcards

Syntax

LOADLIB "wh::filetypes/pkcs.whlib";

BOOLEAN FUNCTION IsCertificateForHostname(RECORD cert, STRING hostname)

Parameters

RECORD cert

Decoded certificate

STRING hostname

Hostname to search for

Return value

BOOLEAN

TRUE if the certificate is valid for the hostname