Update PHP cURL request from SSLv3 to TLS..?

后端 未结 4 600
忘了有多久
忘了有多久 2020-12-30 12:36

Because of the recent vulnerability discovered in SSLv3, many web service providers (ie. PayPal, Facebook, Google) are disabling that and wanting us to use TLS instead. I\'

4条回答
  •  庸人自扰
    2020-12-30 13:31

    Copied from: SSL error can not change to TLS

    Try add curl_setopt($curl, CURLOPT_SSL_CIPHER_LIST, 'TLSv1'); to your code.

    This will work if you cURL is OpenSSL libssl based but not if nss based.

提交回复
热议问题