Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Name: The Short & Sweet OpenSSL Cipher String *for PFS* (using modern ciphers)
- ===== ========================================================================
- Version: 0.2 *
- Author: Steven Page
- Organization: RapidWebs
- Short Description:
- ==================
- Enforce PCI Compliance & Perfect Forward Secrecy, with support for algorithms like ECDH & GCM. Fall back mechanisms include: gracefully falling back through modern cipher algorithms, keeping forward secrecy as the leading priority. all without sacrificing protocol support, client/browser support, or security (i.e. using weak ciphers).
- This list should guarantee you an A on the Qualys SSL Labs Server Test (as long as anything outside of the scope of this list is dually taken care of..)
- Change Log:
- ===========
- * Version 0.2:
- - Modified to support more recent tokens, those of which are synonymous (but provide a cleaner look)
- - Modified and reorganized to support clients/browsers which lack support for TLS 1.2
- - Fall back mechanisms were also added for such clients and browsers, respectively
- - Resolved a few other minor organizational issues
- Version 0.1:
- - Original List is deployed.
- Cipher Lists:
- =============
- Sort for Speed (i.e. AES128/SHA256):
- EECDH:EDH:ECDH:DH:HIGH:MEDIUM:!LOW:!SSLv2:!MD5:!DSS:!3DES:!EXP:!SRP:!PSK:!SEED:!aNULL:!eNULL:!NULL:@STRENGTH:+AES256:+SHA1:+CAMELLIA128:+CAMELLIA256:+RC4
- Sort for Strength (i.e. AES256/SHA384)
- EECDH:EDH:ECDH:DH:HIGH:MEDIUM:!LOW:!SSLv2:!MD5:!DSS:!3DES:!EXP:!SRP:!PSK:!SEED:!aNULL:!eNULL:!NULL:@STRENGTH:+AES128:+SHA1:+CAMELLIA256:+CAMELLIA128:+RC4
- *Note: Set your server to enforce the Server Defined Cipher Order to see these results..*
- Full Description:
- =================
- I've seen a wide range of over complicated Cipher Strings for SSL/TLS Enabled Software out there... often redundant or simply far too long and unnecessary. and after doing some digging through the OpenSSL Manual Pages, I have created a short & sweet cipher list for use with any modern server software that supports SSL/TLS.
- The primary goals of this cipher list is to:
- --------------------------------------------
- 1A) Enforce Perfect Forward Secrecy (PFS) i.e. an Ephemeral Key Exchange (KEX),
- 1A2) Use a minimum of GCM-SHA256 (falling back to SHA256) for message authentication (MAC)
- 1A3) Use RSA or ECDSA as the Signature.
- Forward Secrecy is obtained using:
- ----------------------------------
- 1B) the Elliptical Curved Diphie Hellman (ECDH) Algorithm for KEX
- 1C) Falling back to the regular Diphie Hellman (DH) Algorithm (if "ECDH" is not supported by the client)
- If PFS is *not* supported by the client:
- ----------------------------------------
- 2A) attempt the use of regular ECDH algorithms for the KEX,
- 2B) falling back to DH algorithms for the KEX,
- 2C) finally, falling back to regular AES128/256 (as a last resort)
- Final Details:
- ==============
- The first list is sorted to prefer AES128 over AES256 as the block cipher. This is a performance choice, considering AES256 is theoretically not much stronger (in a real world scenario). However, If the client requires 256, all strong ciphers are still available for use.
- The first list also prefers GCM-SHA256 / SHA256 over SHA384 for Message Authentication. again, this is for performance reasons. SHA384 is still available however.
- The second list is ordered for Strength over Speed. this will simply reorder the existing list for Strength, which means all AES128/GCM-SHA256/SHA256 ciphers are still available to clients who need them.
- Finally, support for a wide range of clients and browsers has been taken into consideration; Even on older browsers, this list should make an attempt to use a PCI Compliant, Forward Secrecy enabled cipher. however, if none exists, it will continue to fall back through most typical cipher implementations.
- Version 0.2 added proper support for browsers not running the latest and greatest TLS 1.2.. and also added backwards compatibility for these platforms. I also added tokens which are a bit more up-to-date, or "human readable". moreover, a few minor bugs in ordering were fixed.
- I hope this helps somebody! cause In my opinion, there is no need for these huge, long, and disorganized cipher lists that I so often come across. key words and operators have been integrated into the cipher list specification, and for a good reason!
- Regards,
- Steven Page
- the RapidWebs Organization
- CIPHER LIST (preference: speed)
- ===============================
- ECDHE-RSA-AES128-GCM-SHA256
- ECDHE-ECDSA-AES128-GCM-SHA256
- ECDHE-RSA-AES128-SHA256
- ECDHE-ECDSA-AES128-SHA256
- DHE-RSA-AES128-GCM-SHA256
- DHE-RSA-AES128-SHA256
- ECDH-RSA-AES128-GCM-SHA256
- ECDH-ECDSA-AES128-GCM-SHA256
- ECDH-RSA-AES128-SHA256
- ECDH-ECDSA-AES128-SHA256
- AES128-GCM-SHA256
- AES128-SHA256
- ECDHE-RSA-AES256-GCM-SHA384
- ECDHE-ECDSA-AES256-GCM-SHA384
- ECDHE-RSA-AES256-SHA384
- ECDHE-ECDSA-AES256-SHA384
- DHE-RSA-AES256-GCM-SHA384
- DHE-RSA-AES256-SHA256
- ECDH-RSA-AES256-GCM-SHA384
- ECDH-ECDSA-AES256-GCM-SHA384
- ECDH-RSA-AES256-SHA384
- ECDH-ECDSA-AES256-SHA384
- AES256-GCM-SHA384
- AES256-SHA256
- ECDHE-RSA-AES128-SHA
- ECDHE-ECDSA-AES128-SHA
- DHE-RSA-AES128-SHA
- ECDH-RSA-AES128-SHA
- ECDH-ECDSA-AES128-SHA
- AES128-SHA
- ECDHE-RSA-AES256-SHA
- ECDHE-ECDSA-AES256-SHA
- DHE-RSA-AES256-SHA
- ECDH-RSA-AES256-SHA
- ECDH-ECDSA-AES256-SHA
- AES256-SHA
- DHE-RSA-CAMELLIA128-SHA
- CAMELLIA128-SHA
- DHE-RSA-CAMELLIA256-SHA
- CAMELLIA256-SHA
- ECDHE-RSA-RC4-SHA
- ECDHE-ECDSA-RC4-SHA
- ECDH-RSA-RC4-SHA
- ECDH-ECDSA-RC4-SHA
- RC4-SHA
Advertisement
Add Comment
Please, Sign In to add comment