douzi1350 2014-12-15 15:46
浏览 293

Php - cUrl支持TLSv1连接

My payment gataway will change the connection protocol using TLS 1.0 or higher.

I have php 5.5 with library CUrl 7.19.7 (NSS/3.16.2.3 Basic ECC), that supports only CURL_SSLVERSION_TLSv1 (according with this link http://curl.haxx.se/libcurl/c/symbols-in-versions.html).

Should be fine too?. What is the difference between set CURL_SSLVERSION_TLSv1 or CURL_SSLVERSION_TLSv1_0.

Thank you very much, for your time

  • 写回答

1条回答 默认 最新

  • dsstlsqt696435 2014-12-15 16:31
    关注
    • TLSv1: use TLS 1.x, i.e. TLS 1.0, TLS 1.1, TLS 1.2. These might not be all available depending on the underlying implementation.
    • TLSv1_0: use only TLS 1.0, i.e. no TLS 1.1, TLS 1.2 even if the implementation would support this.

    If your implementation supports at most TLS 1.0 then both options should have the same effect.

    BTW, the very first hit with google when searching for "CURL_SSLVERSION_TLSv1_0 CURL_SSLVERSION_TLSv1" is http://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html which documents these options as:

    • CURL_SSLVERSION_TLSv1: TLS 1.x
    • CURL_SSLVERSION_TLSv1_0: TLS 1.0
    评论

报告相同问题?

悬赏问题

  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错
  • ¥15 单片机学习顺序问题!!