Bug #76694 [NEW]: OpenSSL don't use Windows system CA store
From: anrdaemon at freemail dot ru
Operating system: Windows
PHP version: 5.6.37
Package: OpenSSL related
Bug Type: Bug
Bug description:OpenSSL don't use Windows system CA store
Description:
------------
Contrary to the release announce of PHP 5.6
- OpenSSL:
. Fallback to Windows CA cert store for peer verification if no
openssl.cafile
ini directive or "cafile" SSL context option specified in Windows.
(Chris Wright)
file_get_contents('https://ca.rootdir.org/');
fails with certificate verification error.
This is for all PHP versions from 5.6 to 7.2
Test script:
---------------
<?php
print file_get_contents('https://ca.rootdir.org/');
Expected result:
----------------
<html>
<body>
<h1>Hi!</h1>
<p><a href="ca.cer">Root certificate.</a></p>
</body>
</html>
Actual result:
--------------
PHP Warning: file_get_contents(): SSL operation failed with code 1.
OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate
verify failed in ssl-verify.php on line 3
--
Edit bug report at https://bugs.php.net/bug.php?id=76694&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76694&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76694&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76694&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76694&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76694&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76694&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76694&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76694&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76694&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76694&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76694&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76694&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76694&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76694&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76694&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76694&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76694&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76694&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76694&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76694&r=mysqlcfg
Thread (16 messages)
- anrdaemon at freemail dot ru
- daverandom@php.netBug #76694 [Opn->Fbk]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [Fbk->NoF]: OpenSSL don't use Windows system CA store
- anrdaemon at freemail dot ruBug #76694 [Com]: OpenSSL don't use Windows system CA store
- nikic@php.netBug #76694 [NoF]: OpenSSL don't use Windows system CA store
- anrdaemon at freemail dot ruBug #76694 [Com]: OpenSSL don't use Windows system CA store
- anrdaemon at freemail dot ruBug #76694 [Com]: OpenSSL don't use Windows system CA store
- requinix@php.netBug #76694 [NoF->ReO]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [ReO->Fbk]: OpenSSL don't use Windows system CA store
- php-bugs at lists dot php dot netBug #76694 [Fbk->NoF]: OpenSSL don't use Windows system CA store
- anrdaemon at yandex dot ruBug #76694 [Com]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [NoF->Opn]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [Asn]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [Asn->Ana]: OpenSSL don't use Windows system CA store
- cmb@php.netBug #76694 [PATCH]: native Windows cert verification uses CN as sever name
- git@php.netBug #76694 [Ana->Csd]: native Windows cert verification uses CN as sever name