Requests_SSL::verify_certificate( string $host, array $cert ): bool

In this article

Verify the certificate against common name and subject alternative names

Description

Unfortunately, PHP doesn’t check the certificate against the alternative names, leading things like ‘https://www.github.com/‘ to be invalid.

See also

Parameters

$hoststringrequired
Host name to verify against
$certarrayrequired
Certificate data from openssl_x509_parse()

Return

bool

Source

User Contributed Notes

You must log in before being able to contribute a note or feedback.