pm_Checker:: cert_domain Method

Checks whether the domain name specified in the SSL certificate is valid.

Syntax

public static function cert_domain ($dom_name)

Parameters

dom_name

      A string value with the domain name specified in the SSL certificate.

Returns

An integer which is 1 if the login is valid, false (0) otherwise.

Remarks

The dom_name parameter can specify the entire domain name, e.g. plesk.com, or a range of subdomains, which can be done using a wildcard, e.g. *.plesk.com. The allowed format is <label>[.<label>[…]], where a label is a wildcard or a block of 63 characters or less, beginning with a Latin letter and composed of Latin letters (A-Z, a-z), digits (0-9) and '-' (hyphen) characters. The specified domain name shouldn't be longer than 255 characters, shouldn't be 'localhost.rev' or ending with '.in-addr.arpa' (reverse resolution from an IP address to the fully qualified domain address). IP addresses are also disallowed.