After upgrading Apache and PHP to the latest version on Ubuntu 12.01 LTS the SSL sites on it became inaccessible, stating error, "ssl_error_no_cypher_overlap".

I have tried generating a new Self-Signed SSL certificate using openssl req -x509 -nodes -days 1826 -newkey rsa:2048 -keyout apache_x509_RSA-2048_days-1826_013115.key -out apache_x509_RSA-2048_days-1826_013115.crt

But when I run: /etc/ssl/our_certs# sslscan --no-failed mydomain.com

I see:

           ___ ___| |___  ___ __ _ _ __                                           
          / __/ __| / __|/ __/ _` | '_ \                                          
          \__ \__ \ \__ \ (_| (_| | | | |                                         
          |___/___/_|___/\___\__,_|_| |_|                                         

                  Version 1.8.2                                                   
        Copyright Ian Ventura-Whiting 2009                                        

Testing SSL server mydomain.com on port 443

  Supported Server Cipher(s):
    Accepted  SSLv3  256 bits  ECDHE-RSA-AES256-SHA
    Accepted  SSLv3  256 bits  DHE-RSA-AES256-SHA
    Accepted  SSLv3  256 bits  DHE-RSA-CAMELLIA256-SHA
    Accepted  SSLv3  256 bits  AES256-SHA
    Accepted  SSLv3  256 bits  CAMELLIA256-SHA
    Accepted  SSLv3  168 bits  ECDHE-RSA-DES-CBC3-SHA
    Accepted  SSLv3  168 bits  EDH-RSA-DES-CBC3-SHA
    Accepted  SSLv3  168 bits  DES-CBC3-SHA
    Accepted  SSLv3  128 bits  ECDHE-RSA-AES128-SHA
    Accepted  SSLv3  128 bits  DHE-RSA-AES128-SHA
    Accepted  SSLv3  128 bits  DHE-RSA-CAMELLIA128-SHA
    Accepted  SSLv3  128 bits  AES128-SHA
    Accepted  SSLv3  128 bits  CAMELLIA128-SHA

  Prefered Server Cipher(s):
    SSLv3  256 bits  ECDHE-RSA-AES256-SHA

  SSL Certificate:
    Version: 2
    Serial Number: -17181615592741643472
    Signature Algorithm: sha1WithRSAEncryption
    Issuer: /C=PH/ST=NCR/L=Manila/O=Our_Company/CN=mydomain.com/emailAddress=support@snowweb.net
    Not valid before: Sep  5 00:40:40 2013 GMT
    Not valid after: Sep  3 00:40:40 2023 GMT
    Subject: /C=PH/ST=NCR/L=Manila/O=Our_Company/CN=mydomain.com/emailAddress=support@mydomain.com
    Public Key Algorithm: rsaEncryption
    RSA Public Key: (2048 bit)
      Public-Key: (2048 bit)
      Exponent: 65537 (0x10001)
    X509v3 Extensions:
      X509v3 Subject Key Identifier:
      X509v3 Authority Key Identifier:

      X509v3 Basic Constraints:
  Verify Certificate:
    self signed certificate

If I understand correctly both SSL 2 and 3 are now considered insecure and I need to be using TLSv1, v1.1 or v1.2?

What I need to know is how to generate a certificate which uses those TLS versions and anything else that it should also accept?

I should perhaps mention that the certificate is to be used on multiple domains. Thanks.

Additional Info:

openssl version -a

OpenSSL 1.0.1 14 Mar 2012
built on: Fri Jan  9 17:52:49 UTC 2015
platform: debian-amd64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: cc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DOPENSSL_NO_TLS1_2_CLIENT -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/lib/ssl"

apache2 -v

Server version: Apache/2.4.10 (Ubuntu)
Server built:   Jul 22 2014 22:57:50

php -v

PHP 5.5.21-1+deb.sury.org~precise+2 (cli) (built: Jan 26 2015 20:02:42)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

uname -a

Linux s2.mydomain.com 3.13.0-34-generic #60~precise1-Ubuntu SMP Wed Aug 13 15:55:33 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
  • I note that according to the sslscan, the supported ciphers are only SSLv3 which seems to be the problem - I think Firefox and Chrome have both removed support for those, requiring us to use TLS instead, but my server doesn't seem to be supporting that. Is this because of a deficiency in the certificate or in the server config? – Peter Snow Jan 31 '15 at 5:47
  • The supported ciphers are not SSLv3 only. They just show up as SSLv3 because they were introduced in SSLv3. And because TLSv1.0 is basically SSLv3 no cipher will ever show up as TLSv1.0. Although your configuration should be able to support the newer TLSv1.2 ciphers – ontrack Jan 31 '15 at 13:26
  • 1
    Also, because you are regenerating certs anyway. You should probably generate a sha2 certificate from now on after you've solved your problem. Because sha1 as a signature algorithm is deprecated. – ontrack Jan 31 '15 at 13:28
  • @ontrack Thanks for the heads-up on sha1. I'll check into that. – Peter Snow Jan 31 '15 at 18:24

The certificate does not determine whether the connection uses TLS or SSL; that is entirely up to the configuration of the webserver (apache in this case).

The configuration option you need to look at is SSLProtocol, probably using:

SSLProtocol all -SSLv2 -SSLv3

if you want to disable the SSL protocols but leave all the versions of TLS.

| improve this answer | |
  • Thanks Craig, but I just tried that and restarted apache and I'm still seeing the same error. – Peter Snow Jan 31 '15 at 5:40
  • 2
    Not sure what else to suggest. As you say in your comment to the main question, yes, SSLv3 is not supported anymore. But the problem is with Apache, not the certificate. Something in Apache is not enabling TLS (which is odd; typically it "just works"). – Craig Miskell Jan 31 '15 at 5:54
  • Appreciate your thoughts Craig. Hopefully someone else might have encountered this - meanwhile I'll keep studying SSL. – Peter Snow Jan 31 '15 at 6:03

In addition to the SSLProtocol directive mentioned earlier, which governs the versions of the SSL/TLS protocol will be accepted in new connections, a second directive is used to configure to configure the Cipher Suite the client is permitted to negotiate in the SSL/TLS handshake phase.

That is the SSLCipherSuite directive. In theory it is possible to allow the TLS protocol but to exclude all cryptographic cyphers that are actually included in the TLS spec :). A reasonable configuration is:


a slightly "better" option is to give some precedence to cryptographic cypers that offer forward secrecy e.g.:


As a general note, while apache in theory it is configured primarily with the httpd.conf configuration file, that configuration file can include modular sections from additional files. (i.e. the conf.d/*.conf files and Ubuntu specific sites-enabled/*.conf) The order matters! When a some directives occur multiple times often only the last occurrence is applied. So check all includes!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.