Hallo,
ich habe derzeit ein Problem:
ich hab eine IPv4 und ein IPv6 Subnetz (64)
wenn ich nun via curl etwas herunterladen möchte (über SSL, IPv4 und IPv6 aktiv), erfolgt folgende Fehlermeldung
1 2 3 4 | markus@hostname ~ # curl https://getcomposer.org/installer | php % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol |
setze ich jedoch ein -4 noch mit rein um IPv4 zu verwenden, dann läd er mir die installer herunter, jedoch wird dort auch curl verwendet, was dann wiederrum IPv6 verwendet:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | markus@hostname ~ # curl -4 https://getcomposer.org/installer | php % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 13028 0 13028 0 0 179k 0 --:--:-- --:--:-- --:--:-- 227k #!/usr/bin/env php All settings correct for using Composer Downloading... Download failed: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:func(119):reason(252) Failed to enable crypto failed to open stream: operation failed Downloading... Download failed: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:func(119):reason(252) Failed to enable crypto failed to open stream: operation failed Downloading... Download failed: SSL operation failed with code 1. OpenSSL Error messages: error:140770FC:SSL routines:func(119):reason(252) Failed to enable crypto failed to open stream: operation failed The download failed repeatedly, aborting. |
Das Problem besteht nur in Verbindung mit IPv6 und SSL, schalte ich IPv6 aus klappt alles wunderbar.
Gibts eine Möglichkeit das Problem zu beheben, bzw. curl immer IPv4 verwenden zu lassen, egal von wo ich es benutze?
Gruß Markus