php下curl ssl經常使用問題

1. 查看curl版本php

在phpinfo中,能夠查看ssh

 

curl

cURL support enabled
cURL Information 7.35.0
Age 3
Features
AsynchDNS Yes
Debug No
GSS-Negotiate Yes
IDN No
IPv6 Yes
Largefile Yes
NTLM Yes
SPNEGO Yes
SSL Yes
SSPI Yes
krb4 No
libz Yes
CharConv No
Protocols dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
Host i386-pc-win32
SSL Version OpenSSL/0.9.8{
ZLib Version 1.2.7
libSSH Version libssh2/1.4.2 

 

1. ssl version對應的數字curl

CURL_SSLVERSION_DEFAULT (0)
CURL_SSLVERSION_TLSv1 (1)
CURL_SSLVERSION_SSLv2 (2)
CURL_SSLVERSION_SSLv3 (3)
CURL_SSLVERSION_TLSv1_0 (4)
CURL_SSLVERSION_TLSv1_1 (5)
CURL_SSLVERSION_TLSv1_2 (6)網站

 

2. 檢測ssl兼容性的網站url

https://www.ssllabs.com/ssltest/orm

相關文章
相關標籤/搜索