LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-20-2015, 04:57 AM   #1
r3b0ot
LQ Newbie
 
Registered: May 2011
Posts: 16

Rep: Reputation: Disabled
Trying to enable TLS 1.2 on Apache webserver


Hi guys,

I am trying to enable TLS v1.2 on my apache webserver.
Ubuntu 14.04
Apache 2.4.7
openssl 1.0.1f


I have the following set in my vhost config:

Code:
SSLProtocol -All -SSLv3 +TLSv1 +TLSv1.2

But when scanning the website with https://www.ssllabs.com/ssltest/, it still shows TLS 1.2 is not enabled.


any ideas?

Last edited by r3b0ot; 08-20-2015 at 05:01 AM.
 
Old 08-20-2015, 10:37 PM   #2
AlexSlack
Member
 
Registered: Jul 2012
Location: El Salvador
Distribution: Slackware-current
Posts: 53

Rep: Reputation: 42
Hi!

To enable TLS 1.2 you have to enable the ciphers.
This is from the Apache HTTP documentation:

Code:
#   SSL Cipher Suite:
#   List the ciphers that the client is permitted to negotiate,
#   and that httpd will negotiate as the client of a proxied server.
#   See the OpenSSL documentation for a complete list of ciphers, and
#   ensure these follow appropriate best practices for this deployment.
#   httpd 2.2.30, 2.4.13 and later force-disable aNULL, eNULL and EXP ciphers,
#   while OpenSSL disabled these by default in 0.9.8zf/1.0.0r/1.0.1m/1.0.2a.
SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4

#  By the end of 2016, only TLSv1.2 ciphers should remain in use.
#  Older ciphers should be disallowed as soon as possible, while the
#  kRSA ciphers do not offer forward secrecy.  These changes inhibit
#  older clients (such as IE6 SP2 or IE8 on Windows XP, or other legacy
#  non-browser tooling) from successfully connecting.  
#
#  To restrict mod_ssl to use only TLSv1.2 ciphers, and disable
#  those protocols which do not support forward secrecy, replace
#  the SSLCipherSuite and SSLProxyCipherSuite directives above with
#  the following two directives, as soon as practical.
# SSLCipherSuite HIGH:MEDIUM:!SSLv3:!kRSA
# SSLProxyCipherSuite HIGH:MEDIUM:!SSLv3:!kRSA
The following lines tell the server to use the HIGH and MEDIUM security ciphers needed for TLS 1.2

Code:
SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4
Then you enable the protocols:

Code:
#   SSL Protocol support:
#   List the protocol versions which clients are allowed to connect with.
#   Disable SSLv3 by default (cf. RFC 7525 3.1.1).  TLSv1 (1.0) should be
#   disabled as quickly as practical.  By the end of 2016, only the TLSv1.2
#   protocol or later should remain in use.
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLv3 should not be use anymore, and in Apache 2.4 SSLv2 ciphers are no longer supported.

Hope this helps.
 
Old 08-21-2015, 02:46 AM   #3
r3b0ot
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Hi Alex,

Thanks for the reply!
Unfortunately, I still can't get it work to work

My vhost config:

Code:
SSLCipherSuite HIGH:MEDIUM:!MD5:!RC4
SSLProtocol all -SSLv3
SSLProxyProtocol all -SSLv3
SSLHonorCipherOrder On
I also checked my ssl.conf and that looks good as well.


I'm really puzzled...
 
Old 08-21-2015, 02:55 AM   #4
r3b0ot
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
I just found out that issue is probably on my reverse proxy server. When browsing directly to the backend server, TLS 1.2 is used.
When browsing via the reverse proxy server, TLS 1.0 is used.

The configs I pasted above are from my proxy server btw.
 
Old 08-21-2015, 07:18 AM   #5
r3b0ot
LQ Newbie
 
Registered: May 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Got this work, jeez. It was due to apache selecting the SSLsettings from the first vhost config file in sites-enabled and not the one from the site itself.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why do some mail servers send me email w/TLS and others not,even though i enable TLS? psycroptic Linux - Server 10 10-01-2013 03:20 PM
Enable SMTP SSL/TLS (Centos 5.9 - Postfix - Dovecot) marciano Linux - Server 2 05-03-2013 03:19 PM
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 01:14 AM
LXer: How To Enable Multiple HTTPS Sites For One IP On Debian Etch Using TLS Extensio LXer Syndicated Linux News 0 11-19-2007 04:20 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration