icon [Debian]curlダウンロードでSSLエラー (2017/03/21)
Composerでcurlダウンロードでエラー

$curl -sS https://getcomposer.org/installer | phpThe "https://getcomposer.org/versions" 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
Retrying...
The "https://getcomposer.org/versions" 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
Retrying...
The "https://getcomposer.org/versions" 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
The download failed repeatedly, aborting.


OSアップデート

# aptitude update# aptitude upgrade



crt設定

#cd /etc/ssl/certs/#wget http://curl.haxx.se/ca/cacert.pem
#cp -v -f cacert.pem ca-bundle-curl.crt

php.ini変更

#vi /etc/php5/cli/php.ini

openssl.cafile=/etc/ssl/certs/ca-bundle-curl.crt
curl.cainfo =/etc/ssl/certs/ca-bundle-curl.crt