Bug #75565 [NEW]: Certificate verification fails
From: nkiwga at gmail dot com
Operating system: Windows
PHP version: 7.1.11
Package: OpenSSL related
Bug Type: Bug
Bug description:Certificate verification fails
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 bug report at https://bugs.php.net/bug.php?id=75565&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75565&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75565&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75565&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=75565&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=75565&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=75565&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=75565&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=75565&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=75565&r=support
Expected behavior: https://bugs.php.net/fix.php?id=75565&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=75565&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=75565&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=75565&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75565&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=75565&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=75565&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=75565&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75565&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=75565&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=75565&r=mysqlcfg
Thread (5 messages)
- nkiwga at gmail dot com