Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer tries to use TLSv1 when connecting to github to download packages and fails #8506

Open
Anvolne opened this issue Jan 3, 2020 · 9 comments
Labels

Comments

@Anvolne
Copy link

@Anvolne Anvolne commented Jan 3, 2020

My composer.json:

{
    "name": "symfony/website-skeleton",
    "type": "project",
    "license": "MIT",
    "description": "A skeleton to start a new Symfony website",
    "require": {
        "php": "^7.1.3",
        "ext-ctype": "*",
        "ext-iconv": "*",
        "sensio/framework-extra-bundle": "^5.1",
        "symfony/asset": "*",
        "symfony/console": "*",
        "symfony/dotenv": "*",
        "symfony/expression-language": "*",
        "symfony/flex": "^1.1",
        "symfony/form": "*",
        "symfony/framework-bundle": "*",
        "symfony/monolog-bundle": "^3.1",
        "symfony/orm-pack": "*",
        "symfony/process": "*",
        "symfony/security-bundle": "*",
        "symfony/serializer-pack": "*",
        "symfony/swiftmailer-bundle": "^3.1",
        "symfony/translation": "*",
        "symfony/twig-bundle": "*",
        "symfony/validator": "*",
        "symfony/web-link": "*",
        "symfony/yaml": "*"
    },
    "require-dev": {
        "symfony/debug-pack": "*",
        "symfony/maker-bundle": "^1.0",
        "symfony/profiler-pack": "*",
        "symfony/test-pack": "*",
        "symfony/web-server-bundle": "*"
    },
    "config": {
        "preferred-install": {
            "*": "dist"
        },
        "sort-packages": true,
        "disable-tls": false,
        "secure-http": true
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "App\\Tests\\": "tests/"
        }
    },
    "replace": {
        "paragonie/random_compat": "2.*",
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-iconv": "*",
        "symfony/polyfill-php71": "*",
        "symfony/polyfill-php70": "*",
        "symfony/polyfill-php56": "*"
    },
    "scripts": {
        "auto-scripts": {
            "cache:clear": "symfony-cmd",
            "assets:install %PUBLIC_DIR%": "symfony-cmd"
        },
        "post-install-cmd": [
            "@auto-scripts"
        ],
        "post-update-cmd": [
            "@auto-scripts"
        ]
    },
    "conflict": {
        "symfony/symfony": "*"
    },
    "extra": {
        "symfony": {
            "allow-contrib": false,
            "require": "5.*"
        }
    }
}

Output of composer diagnose:

RT-AC66U_B1-C618:~# composer diag
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: OK
Checking https connectivity to packagist: OK
Checking github.com rate limit: FAIL
[Composer\Downloader\TransportException] The "https://api.github.com/rate_limit" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
Failed to enable crypto
failed to open stream: operation failed
Checking disk free space: OK
Checking pubkeys:
Tags Public Key Fingerprint: 57815BA2 7E54DC31 7ECC7CC5 573090D0  87719BA6 8F3BB723 4E5D42D0 84A14642
Dev Public Key Fingerprint: 4AC45767 E5EC2265 2F0C1167 CBBB8A2B  0C708369 153E328C AD90147D AFE50952
OK
Checking composer version: OK
Composer version: 1.9.1
PHP version: 7.2.22
PHP binary path: /tmp/mnt/sda1/entware/bin/php-cli

When I run this command:

composer install

I get the following output:

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 101 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.4.2): Downloading (failed)
Downloading (failed)
Downloading (failed)    Failed to download ocramius/package-versions from dist: The "https://api.github.com/repos/Ocramius/PackageV302ad9600cba41c7d" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source
  - Installing ocramius/package-versions (1.4.2): Cloning 44af6f3a2e


  [RuntimeException]
  Failed to clone https://github.com/Ocramius/PackageVersions.git via https, ssh protocols, aborting.

  - https://github.com/Ocramius/PackageVersions.git
    Cloning into '/tmp/mnt/sda1/entware/share/nginx/html/RemoteAdmin/vendor/ocramius/package-versions'...
    fatal: unable to find remote helper for 'https'

  - git@github.com:Ocramius/PackageVersions.git
    Cloning into '/tmp/mnt/sda1/entware/share/nginx/html/RemoteAdmin/vendor/ocramius/package-versions'...
    git@github.com: Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.


install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] vv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages

And I expected this to happen:
As Gitlab stopped supporting and using TLSv1 and TLSv1.1, I expected composer to use TLSv1.2, but I found no way to actually configure this.

I only started using php for a personal project, I did a very basic configuration of php that could show phpinfo() in browser through LAN with nginx. But when I installed composer to use Symphony it wasn't working.

wget and curl successfully connects and gets a response from github, the verbose output states them connecting with TLSv1.2.

Installed ca-certificates and ca-bundle packages are the latest version available.

@Anvolne

This comment has been minimized.

Copy link
Author

@Anvolne Anvolne commented Jan 3, 2020

curl output:

curl -Iv https://api.github.com/rate_limit
*   Trying 140.82.118.6:443...
* TCP_NODELAY set
* Connected to api.github.com (140.82.118.6) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.com
*  start date: Jul  8 00:00:00 2019 GMT
*  expire date: Jul 16 12:00:00 2020 GMT
*  subjectAltName: host "api.github.com" matched cert's "*.github.com"
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA
*  SSL certificate verify ok.
[...rest is the request/response...]
@mpdude

This comment has been minimized.

Copy link
Contributor

@mpdude mpdude commented Jan 3, 2020

Just to make sure all the necessary information is available here, could you please run php -i and include the OpenSSL version reported in the output here?

@Anvolne

This comment has been minimized.

Copy link
Author

@Anvolne Anvolne commented Jan 3, 2020

Here is the php -i filtered to OpenSSL and ssl substrings:

# php -i | grep 'OpenSSL\|ssl'
Configure Command =>  './configure'  '--target=arm-openwrt-linux' '--host=arm-openwrt-linux' '--build=x86_64-pc-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/opt' '--exec-prefix=/opt' '--bindir=/opt/bin' '--sbindir=/opt/sbin' '--libexecdir=/opt/lib' '--sysconfdir=/opt/etc' '--datadir=/opt/share' '--localstatedir=/opt/var' '--mandir=/opt/man' '--infodir=/opt/info' '--enable-cli' '--enable-cgi' '--enable-fpm' '--enable-shared' '--disable-static' '--with-pic' '--disable-rpath' '--disable-debug' '--disable-phpdbg' '--without-pear' '--with-config-file-path=/opt/etc' '--with-config-file-scan-dir=/opt/etc/php7' '--disable-short-tags' '--without-valgrind' '--with-pcre-regex=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-zlib=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-zlib-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-fileinfo=shared' '--with-gettext=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full' '--enable-dom=shared' '--enable-exif=shared' '--enable-ftp=shared' '--with-gd=shared' '--with-jpeg-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-png-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--without-xpm-dir' '--enable-gd-native-ttf' '--disable-gd-jis-conv' '--with-freetype-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-gmp=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-hash=shared' '--with-iconv=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full' '--with-imap=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-imap-kerberos=no' '--with-imap-ssl=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-intl=shared' '--enable-json=shared' '--with-ldap=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-ldap-sasl=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-mbstring=shared' '--enable-mbregex' '--with-mysqli=shared' '--enable-mysqlnd=shared' '--enable-opcache=shared' '--with-openssl=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-kerberos=no' '--with-openssl-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-pcntl=shared' '--enable-pdo=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-pdo-sqlite=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-pgsql=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-phar=shared' '--enable-session=shared' '--enable-shmop=shared' '--enable-simplexml=shared' '--with-snmp=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-soap=shared' '--enable-sockets=shared' '--with-sqlite3=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-xml=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-xmlreader=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-xmlwriter=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-zip=shared' '--enable-filter' '--enable-libxml' '--with-libxml-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include/libxml2' '--without-system-tzdata' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=arm-openwrt-linux' 'target_alias=arm-openwrt-linux' 'CFLAGS=-O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full/include -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full/include ' 'CXXFLAGS=-O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full/include -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full/include -std=c++0x '
Additional .ini files parsed => /opt/etc/php7/15_openssl.ini,
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
SSL Version => OpenSSL/1.1.1d
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1d  10 Sep 2019
OpenSSL Header Version => OpenSSL 1.1.1d  10 Sep 2019
Openssl default config => /opt/etc/ssl/openssl.cnf
openssl.cafile => /opt/etc/ssl/certs/ca-certificates.crt => /opt/etc/ssl/certs/ca-certificates.crt
openssl.capath => no value => no value
OpenSSL support => enabled
@Seldaek

This comment has been minimized.

Copy link
Member

@Seldaek Seldaek commented Jan 13, 2020

Is /tmp/mnt/sda1/entware/bin/php-cli the expected PHP binary? Can you run /tmp/mnt/sda1/entware/bin/php-cli -i | grep -i ssl to make sure the one composer is using has a correct openssl version?

@stof

This comment has been minimized.

Copy link
Contributor

@stof stof commented Jan 13, 2020

@Seldaek should we report the OpenSSL version in the output of composer diagnose ?

@Anvolne

This comment has been minimized.

Copy link
Author

@Anvolne Anvolne commented Jan 13, 2020

@Seldaek yes, that is the expected binary, it is on a mounted volume, because the main volume is volatile (that is, it resets it's data after every reboot, since it is a firmware on EEPROM)

here is the output you requested:

# /tmp/mnt/sda1/entware/bin/php-cli -i | grep -i ssl
Configure Command =>  './configure'  '--target=arm-openwrt-linux' '--host=arm-openwrt-linux' '--build=x86_64-pc-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/opt' '--exec-prefix=/opt' '--bindir=/opt/bin' '--sbindir=/opt/sbin' '--libexecdir=/opt/lib' '--sysconfdir=/opt/etc' '--datadir=/opt/share' '--localstatedir=/opt/var' '--mandir=/opt/man' '--infodir=/opt/info' '--enable-cli' '--enable-cgi' '--enable-fpm' '--enable-shared' '--disable-static' '--with-pic' '--disable-rpath' '--disable-debug' '--disable-phpdbg' '--without-pear' '--with-config-file-path=/opt/etc' '--with-config-file-scan-dir=/opt/etc/php7' '--disable-short-tags' '--without-valgrind' '--with-pcre-regex=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-zlib=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-zlib-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ctype=shared' '--with-curl=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-fileinfo=shared' '--with-gettext=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full' '--enable-dom=shared' '--enable-exif=shared' '--enable-ftp=shared' '--with-gd=shared' '--with-jpeg-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-png-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--without-xpm-dir' '--enable-gd-native-ttf' '--disable-gd-jis-conv' '--with-freetype-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-gmp=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-hash=shared' '--with-iconv=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full' '--with-imap=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-imap-kerberos=no' '--with-imap-ssl=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-intl=shared' '--enable-json=shared' '--with-ldap=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-ldap-sasl=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-mbstring=shared' '--enable-mbregex' '--with-mysqli=shared' '--enable-mysqlnd=shared' '--enable-opcache=shared' '--with-openssl=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-kerberos=no' '--with-openssl-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-pcntl=shared' '--enable-pdo=shared' '--with-pdo-mysql=shared' '--with-pdo-pgsql=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-pdo-sqlite=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--with-pgsql=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-phar=shared' '--enable-session=shared' '--enable-shmop=shared' '--enable-simplexml=shared' '--with-snmp=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-soap=shared' '--enable-sockets=shared' '--with-sqlite3=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-tokenizer=shared' '--enable-xml=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-xmlreader=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-xmlwriter=shared,/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt' '--enable-zip=shared' '--enable-filter' '--enable-libxml' '--with-libxml-dir=/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/include/libxml2' '--without-system-tzdata' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=arm-openwrt-linux' 'target_alias=arm-openwrt-linux' 'CFLAGS=-O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full/include -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full/include ' 'CXXFLAGS=-O2 -pipe -march=armv7-a -mtune=cortex-a9 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libiconv-full/include -I/media/ware/Entware.2019.10/staging_dir/target-arm_cortex-a9_glibc-2.23_eabi/opt/lib/libintl-full/include -std=c++0x '
Additional .ini files parsed => /opt/etc/php7/15_openssl.ini,
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2
SSL => Yes
SSL Version => OpenSSL/1.1.1d
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1d  10 Sep 2019
OpenSSL Header Version => OpenSSL 1.1.1d  10 Sep 2019
Openssl default config => /opt/etc/ssl/openssl.cnf
openssl.cafile => /opt/etc/ssl/certs/ca-certificates.crt => /opt/etc/ssl/certs/ca-certificates.crt
openssl.capath => no value => no value
OpenSSL support => enabled
@Anvolne

This comment has been minimized.

Copy link
Author

@Anvolne Anvolne commented Jan 13, 2020

Also, I have determined that running this snippet in php also results in a failure.
So it might not be connected to composer after all...

# php -a
Interactive mode enabled

<?php

$contextOptions = [
        'ssl' => [
                'verify_peer' => true,
                'ciphers' => '!TLSv1.0',
        ],
];
$context = stream_context_create($contextOptions);

$data = file_get_contents("https://api.github.com/rate_limit", false, $context);
?>
Warning: file_get_contents(): Failed to enable crypto in Standard input code on line 11

Warning: file_get_contents(https://api.github.com/rate_limit): failed to open stream: operation failed in Standard input code on line 11
@Seldaek

This comment has been minimized.

Copy link
Member

@Seldaek Seldaek commented Jan 13, 2020

@stof That might be a good idea yes..

@Anvolne do you have a proxy or some sort of weird network thing?

@Seldaek Seldaek added the Support label Jan 13, 2020
Seldaek added a commit that referenced this issue Jan 14, 2020
@Anvolne

This comment has been minimized.

Copy link
Author

@Anvolne Anvolne commented Jan 14, 2020

I do not have anything out of the ordinary about the network.

It is simply a cable modem connected to the router (which I'm trying to solve this problem on).
I do not have many options on the modem, as it is a locked firmware from the IPS I got it from. But it does not use a proxy, I know that much.

The router is an Asus RT-AC66U_B1 running MerlinWRT as it's firmware. It supports entware-ng (package manager for embedded systems), from where I installed everything (eg. PHP7, the PHP modules and all dependencies). It does not have firewall enabled at the moment. It has nginx running on it to serve web pages (which currently are not working because of this problem).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.