Bug #75565 [Opn]: Certificate verification fails

From: Date: Thu, 23 Nov 2017 20:35:16 +0000
Subject: Bug #75565 [Opn]: Certificate verification fails
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212706@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75565&edit=1

 ID:                 75565
 User updated by:    nkiwga at gmail dot com
 Reported by:        nkiwga at gmail dot com
 Summary:            Certificate verification fails
 Status:             Open
 Type:               Bug
 Package:            OpenSSL related
 Operating System:   Windows
 PHP Version:        7.1.11
 Block user comment: N
 Private report:     N

 New Comment:

I should add, this is using PHP 7.1.11 (cli).


Previous Comments:
------------------------------------------------------------------------
[2017-11-23 20:27:02] nkiwga at gmail dot com

Description:
------------
Certificate verification is failing for me now, on Windows 10 version 1709.

As I understand it PHP should automatically use the operating system's root certificates, and
it used to do so, however now it is failing.

I can mitigate the issue by specifying openssl.cafile in php.ini with a certificate bundle I found
on the internet, but this never used to be necessary.

Test script:
---------------
file_get_contents('https://www.google.com/');

Actual result:
--------------
PHP Warning:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line
code on line 1

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in Command line
code on line 1
PHP Warning:  file_get_contents(): Failed to enable crypto in Command line code on line 1

Warning: file_get_contents(): Failed to enable crypto in Command line code on line 1
PHP Warning:  file_get_contents(https://www.google.com/): failed to open stream: operation failed in
Command line code on line 1

Warning: file_get_contents(https://www.google.com/): failed to open stream: operation failed in
Command line code on line 1


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75565&edit=1


Thread (5 messages)

« previous php.bugs (#212706) next »