aktinide has asked for the wisdom of the Perl Monks concerning the following question:
I am posting a soap request using LWP or SOAP::Lite where the access is protected by basic authentication, the soapserver string is using ssl as URL like : https://IP:PORT/path-to-soap-provider.
Without the path-to-soap-provider, just connectiong to IP:PORT, the server replies http requests as well as https.( for any reasson )
The script fails with Error:
which is fair enough due to the fact server:port does not behave as ssl server if not forced to doSSL connect attempt failed error:14077102:SSL routines:SSL23_GET_SERVE +R_HELLO:unsupported protocol
Using openssl s_client to test the connection:
fails with the same error message , while:openssl s_client -connect IP:PORT
does make the server to act as ssl serveropenssl s_client -connect IP:PORT -ssl3
Reducing a script to the basic connection, I can see the same error Message:
#!/usr/bin/perl use IO::Socket::SSL qw(debug3); my $client = IO::Socket::SSL->new( PeerAddr => 'IP', PeerPort => 'PORT' SSL_verify_mode => 0x00 ); ##SSL_version => 'SSLv3' if(defined $client){ print <$client>; close $client; }else{ warn "I encountered a problem: ",IO::Socket::SSL::errstr(); } exit;
The SSL_version config is testing the connection to match the given protocol, but obviously not forcing the server the way openssl does. Any other tests dealing with cookies, authentication, ssl_verfiy_mode or ssl_version , do not help, because obviously the basic connection fails before.
soapui java-Application as well as simple vbs script is doing the job , assuming it is possible in general.
What did I miss ? Is there any way to get the same behaviour as with openssl s_client ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: soap request force ssl connection
by Anonymous Monk on May 14, 2015 at 10:31 UTC | |
by aktinide (Initiate) on May 14, 2015 at 13:13 UTC | |
by noxxi (Pilgrim) on May 14, 2015 at 19:12 UTC | |
by Anonymous Monk on May 14, 2015 at 23:44 UTC | |
|
Re: soap request force ssl connection
by Anonymous Monk on May 14, 2015 at 17:46 UTC |