zoukankan      html  css  js  c++  java
  • CentOS 6.8 curl支持的NSS修改为OpenSSL的方法

    在CentOS 6.8的系统里面的curl支持的https是nss版本的,而不是openssl,所以在php使用curl访问https的时候会报Unable to load client key -8178的错误

    [root@149-129-128-100 ~]# curl -V
    curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
    Protocols: tftp ftp telnet dict ldap ldaps http file https ftps scp sftp 
    Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz 

    CentOS6.8默认安装curl是用ssl的版本是NSS,解决方法需要重新编译安装

    [root@149-129-128-144 src]# wget https://curl.haxx.se/download/curl-7.35.0.tar.gz        #可以下载任意版本的curl软件包
    [root@149-129-128-144 src]# tar xf curl-7.35.0.tar.gz 
    [root@149-129-128-144 src]# cd curl-7.35.0
    [root@149-129-128-144 curl-7.35.0]# ./configure --without-nss --with-ssl && make &&make install
    [root@149-129-128-144 curl-7.35.0]# echo "/usr/local/lib" >>/etc/ld.so.conf
    [root@149-129-128-144 curl-7.35.0]# ldconfig
    [root@149-129-128-144 curl-7.35.0]# curl -V
    curl 7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1e zlib/1.2.11 libidn/1.18
    Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp 
    Features: IDN Largefile NTLM SSL libz 
  • 相关阅读:
    UE4 Cel Shading(卡通渲染)
    UE4 常用数学
    锈迹材质全流程实例:Blender-》SP-》UE4
    ue4 优化建议与经验
    VisualStudio开发UE4工程设置
    Procedural Mesh Component in C++:Getting Started
    Java容器有哪些?
    java 连接mongodb
    mongodb 系列 ~ mongo 用户验证系列
    mongodb连接认证失败
  • 原文地址:https://www.cnblogs.com/cyleon/p/10038229.html
Copyright © 2011-2022 走看看