biberlabs / zf2-boilerplate

Unofficial & enhanced skeleton application for ZF2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Composer produces SSL errors on installation

ilhnctn opened this issue · comments

- Installing zendframework/zend-log (2.5.2)
    Downloading: 100%         
    Downloading: 100%         
    Downloading: 100%         
    Failed to download zendframework/zend-log from dist: The "https://api.github.com/repos/zendframework/zend-log/zipball/6b0c8437c67153c5e81cdf1aaa147e5a126ed013" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Failed to enable crypto
failed to open stream: operation failed
    Now trying to download from source

Seems lika a composer-related ssl issue. What is the output of the commmands?

php -r "var_dump(openssl_get_cert_locations());"

php -v

php -i | grep ssl

Is your ssl certificates are up-to-date?

The output is as below. Not sure about sll certificate statuses (whether they are up-to-date or not)

ilhan@icetin:/var/www/zf2-boilerplate$ php -r "var_dump(openssl_get_cert_locations());"
array(8) {
  'default_cert_file' =>
  string(21) "/usr/lib/ssl/cert.pem"
  'default_cert_file_env' =>
  string(13) "SSL_CERT_FILE"
  'default_cert_dir' =>
  string(18) "/usr/lib/ssl/certs"
  'default_cert_dir_env' =>
  string(12) "SSL_CERT_DIR"
  'default_private_dir' =>
  string(20) "/usr/lib/ssl/private"
  'default_default_cert_area' =>
  string(12) "/usr/lib/ssl"
  'ini_cafile' =>
  string(0) ""
  'ini_capath' =>
  string(0) ""
}
ilhan@icetin:/var/www/zf2-boilerplate$ php -v
PHP 5.6.12-1+deb.sury.org~trusty+1 (cli) 
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans
ilhan@icetin:/var/www/zf2-boilerplate$ php -i | grep ssl
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls, tlsv1.0, tlsv1.1, tlsv1.2
openssl
openssl.cafile => no value => no value
openssl.capath => no value => no value
ilhan@icetin:/var/www/zf2-boilerplate$ 

my outputs are same. @ilhnctn @edigu

@ilhnctn openssl version?

$ openssl version