SSL Error

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

SSL Error

Postby mdg33 » 10. March 2018 19:47

Hi Everyone,

First I'm using 5.6.33 / PHP 5.6.33 xampp on osx el captain ver 10.11.6

Bear in mind that I am new at this :(

when running the index.php page on local host I get the following error :

Warning: file_get_contents(): SSL: Connection reset by peer in /Applications/XAMPP/xamppfiles/htdocs/Websites/index.php on line 149

Warning: file_get_contents(): Failed to enable crypto in /Applications/XAMPP/xamppfiles/htdocs/Websites/index.php on line 149

Warning: file_get_contents(https://www.bitstamp.net/api/ticker/): failed to open stream: operation failed in /Applications/XAMPP/xamppfiles/htdocs/Websites/index.php on line 149

Warning: Division by zero in /Applications/XAMPP/xamppfiles/htdocs/Websites/index.php on line 151

the php code I use is the following
Code: Select all
<h1>
<?php
$url = "https://www.bitstamp.net/api/ticker/";
$json = json_decode(file_get_contents($url), true);
$price = $json["last"];
echo floor(744/$price)  . " BTC  ";
 ?>
</h1>


Log Apache

[Sat Mar 10 19:59:42.060462 2018] [ssl:warn] [pid 4659] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 19:59:42.060823 2018] [ssl:warn] [pid 4659] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 19:59:42.061488 2018] [suexec:notice] [pid 4659] AH01232: suEXEC mechanism enabled (wrapper: /Applications/XAMPP/xamppfiles/bin/suexec)
[Sat Mar 10 19:59:42.144551 2018] [ssl:warn] [pid 4660] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 19:59:42.144605 2018] [ssl:warn] [pid 4660] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 19:59:42.144852 2018] [lbmethod_heartbeat:notice] [pid 4660] AH02282: No slotmem from mod_heartmonitor
[Sat Mar 10 19:59:42.199374 2018] [mpm_prefork:notice] [pid 4660] AH00163: Apache/2.4.29 (Unix) OpenSSL/1.0.2n PHP/5.6.33 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Sat Mar 10 19:59:42.199458 2018] [core:notice] [pid 4660] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'
[Sat Mar 10 20:39:23.867461 2018] [mpm_prefork:notice] [pid 4660] AH00169: caught SIGTERM, shutting down
[Sat Mar 10 20:39:35.068152 2018] [ssl:warn] [pid 6742] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 20:39:35.068453 2018] [ssl:warn] [pid 6742] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 20:39:35.069756 2018] [suexec:notice] [pid 6742] AH01232: suEXEC mechanism enabled (wrapper: /Applications/XAMPP/xamppfiles/bin/suexec)
[Sat Mar 10 20:39:35.142695 2018] [ssl:warn] [pid 6743] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 20:39:35.142747 2018] [ssl:warn] [pid 6743] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 20:39:35.142938 2018] [lbmethod_heartbeat:notice] [pid 6743] AH02282: No slotmem from mod_heartmonitor
[Sat Mar 10 20:39:35.209240 2018] [mpm_prefork:notice] [pid 6743] AH00163: Apache/2.4.29 (Unix) OpenSSL/1.0.2n PHP/5.6.33 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Sat Mar 10 20:39:35.209344 2018] [core:notice] [pid 6743] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'
[Sat Mar 10 20:39:42.139611 2018] [mpm_prefork:notice] [pid 6743] AH00169: caught SIGTERM, shutting down
[Sat Mar 10 20:40:01.769946 2018] [ssl:warn] [pid 7039] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 20:40:01.770226 2018] [ssl:warn] [pid 7039] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 20:40:01.770395 2018] [suexec:notice] [pid 7039] AH01232: suEXEC mechanism enabled (wrapper: /Applications/XAMPP/xamppfiles/bin/suexec)
[Sat Mar 10 20:40:01.836032 2018] [ssl:warn] [pid 7040] AH01906: www.example.com:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Sat Mar 10 20:40:01.836087 2018] [ssl:warn] [pid 7040] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 10 20:40:01.836404 2018] [lbmethod_heartbeat:notice] [pid 7040] AH02282: No slotmem from mod_heartmonitor
[Sat Mar 10 20:40:01.853497 2018] [mpm_prefork:notice] [pid 7040] AH00163: Apache/2.4.29 (Unix) OpenSSL/1.0.2n PHP/5.6.33 mod_perl/2.0.8-dev Perl/v5.16.3 configured -- resuming normal operations
[Sat Mar 10 20:40:01.853577 2018] [core:notice] [pid 7040] AH00094: Command line: '/Applications/XAMPP/xamppfiles/bin/httpd -E /Applications/XAMPP/xamppfiles/logs/error_log -D SSL -D PHP'

Thanks any help apreciated

M
User avatar
mdg33
 
Posts: 1
Joined: 10. March 2018 19:34
XAMPP version: 5.6.33 / PHP 5.6.33
Operating System: osx el captain

Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 10 guests