Closed pfirtelu closed 5 years ago
Now I managed to solve the problem by using tls:// for the connection:
$conn = new eppConnection();
$conn->setHostname('tls://HOST');
$conn->setPort(PORT);
$conn->setUsername('******');
$conn->setPassword('******');
$conn->connect();
if ($conn->login()) {
echo "login complete";
//...
}
if ($conn->disconnect()) {
echo "logout complete";
}
Hope this helps other people with the same error messages
Hi there, I'm trying to use this client for an EPP connection, with PHP 7.2, OpenSSL 1.1.1, Curl 7.62.0. When using openssl, I can see EPP greeting (Host, Port and other Info removed "[...]"): openssl s_client -4 -connect HOST:PORT
Without forcing IPv4 (Parameter "-4"), it returns only this:
Now, when trying to make a connection with the PHP EPP client with these parameters: $conn = new eppConnection(); $conn->setHostname('ssl://HOST'); $conn->setPort(PORT); I'm stuck with this error: _Warning: stream_socket_client(): SSL: Success in [...]/eppConnection.php on line 393 Warning: stream_socket_client(): Failed to enable crypto in [...]/eppConnection.php on line 393 Warning: stream_socketclient(): unable to connect to ssl://HOST:PORT (Unknown error) in[...]/eppConnection.php on line 393 (google research does not turn up much useful stuff about it)
When trying to make a connection with these parameters: $conn = new eppHttpsConnection(TRUE); $conn->setHostname('HOST:PORT'); // without the ssl:// I get: _ERROR: Error occurred while executing CURL 35: OpenSSL SSL_connect: SSL_ERRORSYSCALL in connection to HOST:PORT Now I thought this is a problem with IPv6 (since I had to force IPv4 with OpenSSL). When using the eppHttpsConnection and adding the following to the initcurl function: curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); I get this error: ERROR reading EPP message: Document is empty in Entity, line: 1
Now I'm a bit confused which is the right direction. An help is appreciated!