|Do you know where your variables are?|
Socket problems and SSLby shotgunefx (Parson)
|on Jul 10, 2001 at 02:58 UTC||Need Help??|
shotgunefx has asked for the
wisdom of the Perl Monks concerning the following question:
I am attempting to use LWP to connect to a https url and have run into a problem.
Whenever trying to contact any SSL server other than the one on the same machine, the SSL negotiation fails with:
500 SSL negotiation failed:; Resource temporarily unavailable at /usr/local/lib/perl5/site_perl/5.6.0/sparc64-linux/Net/SSL.pm line 138.
The machine in question is not using a proxy and 443 is not being blocked by the firewall which I verified by telneting to various known web servers at 443 from the machine in question.
I tested it against another server here and the request never even hits the server so this leads me to believe there is a problem on the socket level. The machine in question is a sparc running linux and it wouldn't be the first time I have encountered a problem with LWP. (After upgrading last year to a newer rev of LWP, all LWP::Simple::get()'s (and only get) would mysteriously fail unless you prepended a space to the url. !?! The newest version of LWP does not have this problem, btw)
I've gone through the various modules socket modules used by LWP to troubleshoot but I must admit, it's beyond me.
I guess my question is this, when specifying an Internet style socket, are requests that are addressed to the originating machine handled any differently internally than requests that are addressed to a different IP?
If anyone has a suggestion as to where to start looking for the problem or any suggestions, your help would be very appreciated.
LWP::UserAgent::simple_request: GET https://www.thawte.com/
LWP::UserAgent::_need_proxy: Not proxied
LWP::UserAgent::request: Simple response: Internal Server Error
HTTP::Response=HASH(0x38994c)500 (Internal Server Error)
SSL negotiation failed:; Resource temporarily unavailable at /usr/local/lib/perl5/site_perl/5.6.0/sparc64-linux/Net/SSL.pm line 138.
Client-Date: Tue, 10 Jul 2001 02:50:11 GMT
"To be civilized is to deny one's nature."