我试图连接到代理EPP测试床,但我收到一个'无法启用加密',似乎是一个罕见的错误,没有记录的解决方案或原因。

与线条:

$socket = fsockopen('ssl://testbed-epp.nominet.org.uk', 700, $errno, $errst, 10);
.

我得到的确切错误是:

Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /path/classes/nominet_epp.class.php on line 53

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://testbed-epp.nominet.org.uk:700 (Unknown error) in /path/classes/nominet_epp.class.php on line 53
. 据我所知,openssl是用php精细安装的,根据我们phpinfo():
OpenSSL support     enabled
OpenSSL Version     OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
.

numinet docs简单提及“为了验证安全服务器的身份,您将需要 verisign类3公共主证书颁发机构的根证书免费提供www.verisign.com(证书也分发了大多数Web浏览器)。 - 这可能是问题?

更新 如要求,我有var_dump的错误值以及$套接字本身,它们都是假/ 0。 fsockopen php docs 状态“如果errno返回的值是0并且函数返回false,这是一个指示Connect()呼叫前发生错误。这很可能是由于初始化套接字的问题。

任何帮助将非常感激。

有帮助吗?

解决方案

I had exactly the same issue and it was down to the Nominet Firewall not being updated with the correct IP address. When you set this up in the Nominet control panel you need to wait an hour for their firewalls to fully update - once this is done the connection works fine.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top