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
| static | valid(string $reference): bool# | Whether a certificate's reference name is one a host can match. | |||
| static | matches(string $host, string $reference): bool# | Whether the host matches the reference name. | |||
| static | certificateMatches(string $host, array $certificate): bool# | Whether a parsed certificate (openssl_x509_parse) names the host.
|
Nothing matches.