API / Minn\Http / CertificateName

CertificateName final class

Minn\Http\CertificateName · public/minn/src/Minn/Http/CertificateName.php · 56 lines

Whether a TLS certificate names a host: a wildcard only as a whole first label with at least two labels after it, matching exactly one label; an IP address never matches by name; the subjectAltName DNS entries win over the common name when present.

Uses 1

Public

staticvalid(string $reference): bool#

Whether a certificate's reference name is one a host can match.

staticmatches(string $host, string $reference): bool#

Whether the host matches the reference name.

staticcertificateMatches(string $host, array $certificate): bool#

Whether a parsed certificate (openssl_x509_parse) names the host.

$certificatearray<string, mixed>