Waseem Akram Malik
Waseem Akram Malik

Reputation: 587

Openssl command if failing with alert handshake error

I am trying to run an openssl s_client command but it returns me a handshake failure response. Here is the command with output

OpenSSL> s_client -connect host:port -showcerts

CONNECTED(00000003) 89154:error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:/SourceCache/OpenSSL098/OpenSSL098-52.40.1/src/ssl/s23_clnt.c:593:

Can some one help what is happening here?

Upvotes: 0

Views: 2632

Answers (1)

Ronald Poon
Ronald Poon

Reputation: 199

You are using openssl version 0.9.8 is pretty old and TLSv1.1, TLSv1.2 and SNI are not supported. And probably the target server is rejecting SSLv2/SSLv3/TLSv1.

Try openssl version 1.0 or above and see if able to show cert. details.

OpenSSL> s_client -connect host:port -servername vhostname -showcerts

Upvotes: 1

Related Questions