Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Problems with IO::Socket:SSL

by noxxi (Pilgrim)
on Aug 13, 2017 at 16:22 UTC ( #1197334=note: print w/replies, xml ) Need Help??


in reply to Re^4: Problems with IO::Socket:SSL
in thread Parallel::ForkManager or something like that?

Handshake error can be about anything, i.e. mismatch in protocol version, wrong certificates, no cipher overlap, .... But there are some things which are very strange which your way of doing start_SSL. It looks like you've added any options you could find somewhere, no matter if they make sense for the SSL server or not. Some of these might be the cause of the problem:
  • You are setting SSL_server to true. This is correct
  • You are requesting a client certificate (SSL_VERIFY_PEER). This is probably not what you intend. Also, you add various options which are relevant for requesting of verification of server certificates (SSL_hostname, SSL_verifycn_..., ..) and which makes no sense in the role of an SSL server.
  • There is no verify_hostname option for IO::Socket::SSL::start_SSL. There is also no PeerAddr option. All options start with SSL_ prefix.
I would suggest to clean up the code and try again. If the problem persists try with a minimal server instead (i.e. no forkmanager) so that the problem can be more easily debugged.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1197334]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-12-12 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (341 votes). Check out past polls.

    Notices?