centos系统中php Curl 无法访问https ,更换ssl_version NSS为openssl
来源:互联网 发布:管理支撑系统大数据 编辑:程序博客网 时间:2024/05/29 08:39
在centos 6上面,curl模块的ssl 支持默认为NSS,涉及到的程序里有https,是需要双向认证的,这时使用NSS会报错,所以需要更换为openssl.
一、查看系统自带的curl的版本
- [root@localhost local]# curl -V
- curl 7.19.7
二、得到curl当前版本是7.19.7,我们去官方下载http://curl.haxx.se/download/archeology/ 同样版本,然后解压、编译。
- wget http://curl.haxx.se/download/archeology/curl-7.19.7.tar.gz
- tar -zxf curl-7.19.7.tar.gz
- cd curl-7.19.7
- ./configure --without-nss --with-ssl
- make && make install
#–without-nss 禁用nss, –with-ssl启用openssl的支持.
三、将curl的库载入动态共享文件,并重新加载
- echo "/usr/local/lib" >> /etc/ld.so.conf
- ldconfig
四、查看新安装后curl的版本
- [root@localhost local]# curl -V
- curl 7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1e zlib/1.2.3 libidn/1.18
- Protocols: tftp ftp telnet dict http file https ftps
- Features: IDN IPv6 Largefile NTLM SSL libz
五、重启你的httpd/nginx服务和php服务器
- service nginx restart #或service httpd restart
- service php-fpm restart
阅读全文
0 0
- centos系统中php Curl 无法访问https ,更换ssl_version NSS为openssl
- centos 6.5系统PHP环境下的CURL库的SSL Version默认为NSS,怎么变更为OpenSSL?
- CURL 访问https 发生 NSS error -12190 错误
- curl无法访问http/https的解决方法…
- PHP CURL HTTPS POST
- PHP CURL HTTPS POST
- PHP CURL HTTPS POST
- php curl http https
- PHP curl请求https
- CentOS 5.7 将系统语言更换为中文简体
- CentOS系统更换软件安装源 为阿里云
- linux中为php添加curl扩展
- mac 在php工程中实现curl的https访问
- CentOS PHP5安装pdo_mysql,openssl,curl扩展
- php curl 打开https网站
- curl PHP linux 下取值 https
- php curl 模拟登陆https
- PHP 的curl 请求https
- SQLite 约束
- 关于iview的使用心得
- 关于Android studio3.0的坑之butterknife 7.0.1(低版本)
- 关于oralce簇表的介绍
- Linux命令scp与tar
- centos系统中php Curl 无法访问https ,更换ssl_version NSS为openssl
- Ajax、Json对象及完成添加购物车的功能
- 我的mqtt协议和emqttd开源项目个人理解(4)
- Java实现CRC16CCITT算法
- analysis of image dataset checking result (image segmentation experiment)
- Angular全选及批量删除
- 友元类
- 移动端网页滑动到底部触发事件
- 最新手机枰测出炉 iPhone X仅仅名列第9名