Skip to content

Commit

Permalink
put ssl cipher suite in attribute and change to new BEAST-safe value
Browse files Browse the repository at this point in the history
  • Loading branch information
smith committed Jul 18, 2012
1 parent b4d0f76 commit 46192ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions attributes/mod_ssl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Author:: Nathan L Smith <nlloyds@gmail.com>
# Copyright:: Copyright (c) 2012, Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

default['apache']['mod_ssl']['cipher_suite'] = 'RC4-SHA:HIGH:!ADH'
3 changes: 2 additions & 1 deletion templates/default/mods/ssl.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ SSLMutex file:/var/run/ssl_mutex
SSLMutex file:/var/run/apache2/ssl_mutex
<% end -%>

SSLHonorCipherOrder On
# SSL Cipher Suite:
# List the ciphers that the client is permitted to negotiate.
# See the mod_ssl documentation for a complete list.
# enable only secure ciphers:
SSLCipherSuite HIGH:MEDIUM:!ADH
SSLCipherSuite <%= node['apache']['mod_ssl']['cipher_suite'] %>
# Use this instead if you want to allow cipher upgrades via SGC facility.
# In this case you also have to use something like
# SSLRequire %{SSL_CIPHER_USEKEYSIZE} >= 128
Expand Down

1 comment on commit 46192ab

@smith
Copy link
Author

@smith smith commented on 46192ab Jul 19, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds great. I'm not that knowledgeable about the ciphers, but this one did pass the test on ssllabs. I'd rather have someone who knows what they're doing pick a sensible default. :)

Please sign in to comment.