View Full Version : Timing out when connecting to ResellOne
aventureben
03-20-2006, 06:09 PM
We're trying to setup a 3rd-party script to handle domain registration as well as the OpenSRS RCL to manage the domains. The plan is to integrate everything eventually when we get it going.
Anyway, we're having problems with the 3rd-party (PHP) script. It uses an encoded copy of the opensrs-php class/module to communicate with resellone. Putting it simply, the script times out on trying to register a domain. There's no explanation ... so we're lost as to what the problem is.
Since we can't test properly with the encoded opensrs-php module, I've installed a copy of it on its own. After setting that up, it (nearly) works!
[ INFO ]
Array
(
[is_success] =>
[response_code] => 400
[response_text] => Authentication Error: Unrecognized Peer
)
Any suggestions? If I can get the OpenSRS-php module working, then getting the 3rd party script working shouldnt be too much of a problem.
Laurie-Resell1
03-21-2006, 08:55 AM
We're trying to setup a 3rd-party script to handle domain registration as well as the OpenSRS RCL to manage the domains. The plan is to integrate everything eventually when we get it going.
Anyway, we're having problems with the 3rd-party (PHP) script. It uses an encoded copy of the opensrs-php class/module to communicate with resellone. Putting it simply, the script times out on trying to register a domain. There's no explanation ... so we're lost as to what the problem is.
Since we can't test properly with the encoded opensrs-php module, I've installed a copy of it on its own. After setting that up, it (nearly) works!
[ INFO ]
Array
(
[is_success] =>
[response_code] => 400
[response_text] => Authentication Error: Unrecognized Peer
)
Any suggestions? If I can get the OpenSRS-php module working, then getting the 3rd party script working shouldnt be too much of a problem.
I have forwarded this issue to the development team for investigation, please email support@resellone.net for further assistance.
aventureben
03-21-2006, 09:57 AM
I have forwarded this issue to the development team for investigation, please email support@resellone.net for further assistance.
Email sent - Thanks ;)
JamesC
03-21-2006, 06:56 PM
Email sent - Thanks ;)
If you find out the answer to this please let us all know I have been fighting with this error for weeks now.
[NOT OK]: Authentication Error: Unrecognized Peer
is_success:
response_code: 400
response_text: Authentication Error: Unrecognized Peer
Seems the Reseller One server does not recognize our server even tho we have the IP's listed in the OpenSRS Script/API Access list with ResellerOne interface.
Laurie-Resell1
03-22-2006, 06:07 AM
I have forwarded this issue to the development team for investigation, please email support@resellone.net for further assistance.
Unfortunately, we are not able to support third party software, which includes the SourceForge PHP version of the API. Generally resellers, usually would take this task of implementing 3rd party client code on their own, and they usually get their way through it quite well.
kasey
03-22-2006, 07:34 AM
I was able to grab a copy of the SourceForge code and duplicate the problem on my account, which is working perfectly with my Perl code... I'll see if I can't figure out what's wrong with the PHP later this afternoon when I have a minute.
From what I can see so far, it looks like it's highly hard-coded towards the OpenSRS settings (even though it provides settings for an HRS instance like ResellOne).
aventureben
03-22-2006, 11:03 AM
I was able to grab a copy of the SourceForge code and duplicate the problem on my account, which is working perfectly with my Perl code... I'll see if I can't figure out what's wrong with the PHP later this afternoon when I have a minute.
From what I can see so far, it looks like it's highly hard-coded towards the OpenSRS settings (even though it provides settings for an HRS instance like ResellOne).
We've managed to get the OpenSRS-RCL working to manage the domains, but nothing else.
I do know it's connecting to resellone and not opensrs... If you're looking at the opensrs-php class..and using the test.php, you do need to over-ride the settings in the file to use the 'HRS' settings instead of 'LIVE/TEST'. I noticed that afterwards
kasey
03-22-2006, 01:59 PM
We've managed to get the OpenSRS-RCL working to manage the domains, but nothing else.
I do know it's connecting to resellone and not opensrs... If you're looking at the opensrs-php class..and using the test.php, you do need to over-ride the settings in the file to use the 'HRS' settings instead of 'LIVE/TEST'. I noticed that afterwards
Got it figured out... and this makes sense. The OpenSRS servers answer on both ports 55000 (for HTTP requests) and 55443 (for HTTPS requests). Conversely, the R1 servers are answering on 52000 and 52443. Try putting port 52000 in there instead of 52443 and see if that works for you... it did for me. The script was basically sending HTTP to 52443, not getting an answer back, and spitting out that "Unrecognized Peer" error because it didn't get the proper Server ID back.
(If you want to run it over SSL, you have to change the crypt_type to SSL and have your PHP compiled with --with-openssl ... I'm trying that right now to see if it works.)
aventureben
03-22-2006, 05:13 PM
Got it figured out... and this makes sense. The OpenSRS servers answer on both ports 55000 (for HTTP requests) and 55443 (for HTTPS requests). Conversely, the R1 servers are answering on 52000 and 52443. Try putting port 52000 in there instead of 52443 and see if that works for you... it did for me. The script was basically sending HTTP to 52443, not getting an answer back, and spitting out that "Unrecognized Peer" error because it didn't get the proper Server ID back.
(If you want to run it over SSL, you have to change the crypt_type to SSL and have your PHP compiled with --with-openssl ... I'm trying that right now to see if it works.)
I must say I'm impressed :D It's working :rolleyes:
Time to try and sort out the 3rd-party scripts now...
Ben
Laurie-Resell1
03-23-2006, 06:26 AM
Wow! You all are awesome! Gotta love working with really smart people!;)
JamesC
03-25-2006, 10:45 PM
All I got was a trade from one error to the next.
[NOT OK]: Unable to establish socket: (13) Permission denied
is_success:
response_code: 400
response_text: Unable to establish socket: (13) Permission denied
So off to try something else ....... lol
kasey
03-26-2006, 09:46 AM
All I got was a trade from one error to the next.
[NOT OK]: Unable to establish socket: (13) Permission denied
is_success:
response_code: 400
response_text: Unable to establish socket: (13) Permission denied
So off to try something else ....... lolWell, that's definitely a client-side error and not a ResellOne error... looking at the code, that comes in right before it tries to authenticate to the R1 server. Sounds like permissions aren't right somewhere... maybe /tmp?
JamesC
03-26-2006, 03:47 PM
Well, that's definitely a client-side error and not a ResellOne error... looking at the code, that comes in right before it tries to authenticate to the R1 server. Sounds like permissions aren't right somewhere... maybe /tmp?
Thanks for the hint .......... It was the fire wall that was blocking the call back opened the port in the fire wall and poof it works!!
Hey thanks to all for helping out on this maybe I should post a how to for the ModrenBill version of OpenSRS :D
Now the trick is getting it to work with SSL support ......... ;)
smartcoder1076
12-19-2006, 01:28 PM
Hi.
Hope you can help me.I got an fsockopen error while trying to connect OpenSRS server for domain registration,transfer ,lookup and renewal. The error was
Warning: fsockopen() [function.fsockopen]: unable to connect to rr-n1-tor.opensrs.net:55443 in /home/onvix/public_html/openSRS_base.php on line 617
It was working before setting SSL certtificate(works fine with http but not for https).
I have changed the $crypt_type to SSL .But still I am getting this error. Please help me...
Thanks in advance.
with regards
Smartcoder
Domains_Aamir
12-25-2006, 02:27 PM
Please send this request to support@resellone.net with as much information as possible. We will be happy to investigate and help if possible.
Merry Christmas!!
Aamir Abdullah
Reseller Services Supervisor
vBulletin v3.5.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.