Creating a bug report/issue
I have searched the existing open and closed issues and I can’t find the necessary information.
Required Information
-
DietPi version:
G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=16
G_DIETPI_VERSION_RC=2
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘not applicable’ -
Distro version
bullseye 1 -
Kernel version
Linux DietPi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux -
Architecture
armhf -
SBC model
RPi Zero 2 W (armv7l) -
Power supply used
5V -
SD card used
Sandisk
Additional Information (if applicable)
- Software title: PHP 7.4 fpm
- Software was freshly installed.
- Can this issue be replicated on a fresh installation of DietPi: Yes.
Steps to reproduce
Use PHP command of “file_get_contents” or “curl” for different websites and get the following error message.
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure in /var/www/html/abc.php
PHP Warning: file_get_contents(): Failed to enable crypto in /var/www/html/abc.php
PHP Warning: file_get_contents(https://www.passageweather.com/maps/engchannel/waves/waves.zip): failed to open stream: operation failed in /var/www/html/abc.php
Expected behaviour
On certain pages with TLS_1.2 upload of data works.
Actual behaviour
See above error message.
Extra details
I checked and the OpenSSL extension for PHP does not seem to exist. I can’t find it in dynamic library for DietPI OS either. Thanks.