【发布时间】:2016-05-16 18:43:25
【问题描述】:
当我尝试与fsockopen 连接时:
$fp = fsockopen('tls://www.sandbox.paypal.com', 443, $errno, $errstr, 30);
函数显示如下错误:
Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1.
OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3
alert handshake failure in /home/puntodec/public_html/test_socket.php on (line number)
Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in
/home/puntodec/public_html/test_socket.php on (line number)
Warning: fsockopen() [function.fsockopen]: unable to connect to
tls://www.sandbox.paypal.com:443 (Unknown error) in (line number)
但如果我使用tls://www.paypal.com,则不会出现显示错误。 Paypal 是否更改了沙箱的套接字配置?或者还有什么问题?
请帮助我,从现在开始感谢您的任何帮助。
【问题讨论】:
标签: openssl sandbox messages fsockopen