简体   繁体   中英

cURL error: [35] Unsupported SSL protocol version

I have just made my ipn.php file for PayPal IPN and when I tested it with PayPal Sandbox IPN simulator, my errors log outputted this error:

cURL error: [35] Unsupported SSL protocol version

Is something wrong with my php file or my website host? How can I fix it?

Thanks in Advance

add a -1 to the curl command to force using TLS and see if that works.

-1, --tlsv1

(SSL) Forces curl to use TLS version 1.x when negotiating with a remote TLS server. You can use options --tlsv1.0, --tlsv1.1, and --tlsv1.2 to control the TLS version more precisely (if the SSL backend in use supports such a level of control).

http://curl.haxx.se/docs/manpage.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM