Bug #76694 [NEW]: OpenSSL don't use Windows system CA store

From: Date: Thu, 02 Aug 2018 13:01:40 +0000
Subject: Bug #76694 [NEW]: OpenSSL don't use Windows system CA store
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216538@lists.php.net to get a copy of this message
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)

« previous php.bugs (#216538) next »