>... not using SNI because openssl is too old
>... SSL Version TLSv1_2 not supported
These two messages indicate that you are using a very old version of OpenSSL, i.e. OpenSSL 0.9.8 or even worse. There is no support for TLS 1.2 in this old version and it is also missing support for ECDHE ciphers. Also there is no support for SNI with this version of OpenSSL in IO::Socket::SSL.
It is very likely that your (unknown) server either requires SNI and/or modern ciphers and/or modern TLS protocol versions. And since this is not supported with your old OpenSSL version the handshake fails.