Ubuntu – How to actually disable SSL3 on a ubuntu 14.04 LTS

openssltlstomcatUbuntu

I am running a server which has tomcat7 and apache2 on it. I issue the following command via another remote host:

openssl s_client -connect my_site:443 -ssl3

This returns:

CONNECTED(00000003)
139773982140064:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number:s3_pkt.c:339:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 7 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : SSLv3
    Cipher    : 0000
    Session-ID: 
    Session-ID-ctx: 
    Master-Key: 
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1462854225
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
---

I want to disable SSLv3 , how do i do it?

Best Answer

Add or update the following lines in your configuration:

SSLProtocol all -SSLv2 -SSLv3

Then run: sudo apache2ctl configtest && sudo service apache2 restart