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:

SSL connect attempt failed error:14077102:SSL routines:SSL23_GET_SERVE +R_HELLO:unsupported protocol
which is fair enough due to the fact server:port does not behave as ssl server if not forced to do

Using openssl s_client to test the connection:

openssl s_client -connect IP:PORT
fails with the same error message , while:
openssl s_client -connect IP:PORT -ssl3
does make the server to act as ssl server

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 ?


In reply to soap request force ssl connection by aktinide

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.