Requests_Transport_fsockopen::verify_certificate_from_context( string $host, resource $context ): 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.
Instead

See also

Parameters

$hoststringrequired
Host name to verify against
$contextresourcerequired
Stream context

Return

bool

Source

User Contributed Notes

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