|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-04 17:31 UTC] rdlowrey@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: rdlowrey
[2015-03-04 17:31 UTC] rdlowrey@php.net
[2015-03-05 05:44 UTC] rdlowrey@php.net
[2015-03-05 05:44 UTC] rdlowrey@php.net
-Status: Verified
+Status: Closed
[2015-03-05 05:45 UTC] rdlowrey@php.net
[2015-03-05 05:49 UTC] rdlowrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
Description: ------------ The server at 10.2.0.1 has a certificate with CN set to the hostname and subjectAltNames set to the hostname and also IP-Address: X509v3 Subject Alternative Name: DNS:hostname.fqdn, DNS:hostname, IP Address:10.2.0.1 The certificate is correct, the import into the local trusted CA store worked: $ curl https://10.2.0.1/some/file.html Hi! The php script below, however, prints the following error message: Peer certificate CN=`hostname' did not match expected CN=`10.2.0.1' It works if I replace "10.2.0.1" by "hostname" or "hostname.fqdn". Test script: --------------- <?php file_get_contents("https://10.2.0.1/some/file.html"); ?>