php-epp-client icon indicating copy to clipboard operation
php-epp-client copied to clipboard

ERROR: Unexpected closed connection by remote host...

Open mohamedammar940 opened this issue 1 year ago • 1 comments
trafficstars

hello i have this error ERROR: Unexpected closed connection by remote host... this my laravel code $conn = new \Metaregistrar\EPP\eppConnection(); $conn->addExtension( 'allocationToken','urn:ietf:params:xml:ns:allocationToken-1.0'); $conn->useExtension('secDNS-1.1'); $conn->setHostname('epp.sandbox.nic.sa'); //also trying ssl://epp.sandbox.nic.sa $conn->setPort(700); $conn->setUsername('xxx'); $conn->setPassword('xxxxxx'); $context = stream_context_create(array( 'ssl' => array( 'local_cert' => $sslCert, 'local_pk' => $sslKey, 'passphrase'=>'', ) )); $conn->setSslContext($context); $conn->connect(); $conn->login(); but i get same error i can connect to NIC epp end point service via cmd using the SSL certificates openssl s_client -connect epp.sandbox.nic.sa:700 -cert registrar.crt -key registrar.key it return CONNECTED(00000003) depth=2 C = US, O = Internet Security Research Group, CN = ISRG Root X1 verify return:1 depth=1 C = US, O = Let's Encrypt, CN = R3 verify return:1 depth=0 CN = *.sandbox.nic.sa verify return:1 and other xml resonse any

mohamedammar940 avatar Jan 22 '24 14:01 mohamedammar940

This error always occurs when a connection is not accepted / most happens due to whitelisting / firewall issues. Please check the whitelist with your provider, and check your own outgoing firewall settings for the corresponding ports / IP addresses

metaregistrar avatar Apr 02 '24 14:04 metaregistrar