• 安装 composer SSL operation failed with code 1


    gavin@webdev:~> curl -sS https://getcomposer.org/installer | php
    
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    Downloading...
    Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
    file_get_contents(): Failed to enable crypto
    file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation failed
    The download failed repeatedly, aborting.

    解决:

    wget http://curl.haxx.se/ca/cacert.pem
    curl -sS https://getcomposer.org/installer | php -- --cafile=cacert.pem
  • 相关阅读:
    C# 添加修改防火墙端口及程序
    Winform 多线程--解决界面卡死问题
    ScreenOper
    KVM的VPS主机在Centos6.x下修改系统时间
    Java IO和File类
    Java动态代理Proxy类源码分析
    Java IO之字节流
    Java IO之字符流
    两台计算机之间如何通讯
    Java引用类型原理
  • 原文地址:https://www.cnblogs.com/brookin/p/4425950.html
Copyright © 2020-2023  润新知