Verify that SSLv2 is disabled

If you're looking to get PCI/CISP compliance, or you just like better security, disable SSL version 2. Here's how to check if it's enabled on your server:

Testing a web server:
openssl s_client -connect hostname:443 -ssl2

Testing an SMTP server:
openssl s_client -connect hostname:25 -starttls smtp -ssl2

If you get lines like these, SSLv2 is disabled:
419:error:1407F0E5:SSL routines:SSL2_WRITE:ssl handshake failure:s2_pkt.c:428:
420:error:1406D0B8:SSL routines:GET_SERVER_HELLO:no cipher list:s2_clnt.c:450:

If it shows the actual certificate installed, SSLv2 is enabled!

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/01/24/verify-that-sslv2-is-disabled/ .
© Major Hayden 2010.

1 Comment   »

  • tom says:

    Hello,
    thanks for the post. when I test it I get an error but still say connected

    #openssl s_client -connect localhost:8443 -ssl2
    CONNECTED(00000003)
    write:errno=104

    does it means it's disable?

RSS feed for comments on this post , TrackBack URI

Leave a Reply