Guest User

The Short & Sweet OpenSSL Cipher String V.0.2

a guest
Jun 2nd, 2014
687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.45 KB | None | 0 0
  1. Name: The Short & Sweet OpenSSL Cipher String *for PFS* (using modern ciphers)
  2. ===== ========================================================================
  3.  
  4. Version: 0.2 *
  5. Author: Steven Page
  6. Organization: RapidWebs
  7.  
  8. Short Description:
  9. ==================
  10.  
  11. 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).
  12.  
  13. 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..)
  14.  
  15. Change Log:
  16. ===========
  17.  
  18. * Version 0.2:
  19.  
  20. - Modified to support more recent tokens, those of which are synonymous (but provide a cleaner look)
  21. - Modified and reorganized to support clients/browsers which lack support for TLS 1.2
  22. - Fall back mechanisms were also added for such clients and browsers, respectively
  23. - Resolved a few other minor organizational issues
  24.  
  25. Version 0.1:
  26.  
  27. - Original List is deployed.
  28.  
  29. Cipher Lists:
  30. =============
  31.  
  32. Sort for Speed (i.e. AES128/SHA256):
  33. EECDH:EDH:ECDH:DH:HIGH:MEDIUM:!LOW:!SSLv2:!MD5:!DSS:!3DES:!EXP:!SRP:!PSK:!SEED:!aNULL:!eNULL:!NULL:@STRENGTH:+AES256:+SHA1:+CAMELLIA128:+CAMELLIA256:+RC4
  34.  
  35. Sort for Strength (i.e. AES256/SHA384)
  36. EECDH:EDH:ECDH:DH:HIGH:MEDIUM:!LOW:!SSLv2:!MD5:!DSS:!3DES:!EXP:!SRP:!PSK:!SEED:!aNULL:!eNULL:!NULL:@STRENGTH:+AES128:+SHA1:+CAMELLIA256:+CAMELLIA128:+RC4
  37.  
  38. *Note: Set your server to enforce the Server Defined Cipher Order to see these results..*
  39.  
  40. Full Description:
  41. =================
  42.  
  43. 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.
  44.  
  45. The primary goals of this cipher list is to:
  46. --------------------------------------------
  47.  
  48. 1A) Enforce Perfect Forward Secrecy (PFS) i.e. an Ephemeral Key Exchange (KEX),
  49. 1A2) Use a minimum of GCM-SHA256 (falling back to SHA256) for message authentication (MAC)
  50. 1A3) Use RSA or ECDSA as the Signature.
  51.  
  52. Forward Secrecy is obtained using:
  53. ----------------------------------
  54.  
  55. 1B) the Elliptical Curved Diphie Hellman (ECDH) Algorithm for KEX
  56. 1C) Falling back to the regular Diphie Hellman (DH) Algorithm (if "ECDH" is not supported by the client)
  57.  
  58. If PFS is *not* supported by the client:
  59. ----------------------------------------
  60.  
  61. 2A) attempt the use of regular ECDH algorithms for the KEX,
  62. 2B) falling back to DH algorithms for the KEX,
  63. 2C) finally, falling back to regular AES128/256 (as a last resort)
  64.  
  65. Final Details:
  66. ==============
  67.  
  68. 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.
  69.  
  70. The first list also prefers GCM-SHA256 / SHA256 over SHA384 for Message Authentication. again, this is for performance reasons. SHA384 is still available however.
  71.  
  72. 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.
  73.  
  74. 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.
  75.  
  76. 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.
  77.  
  78. 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!
  79.  
  80. Regards,
  81. Steven Page
  82. the RapidWebs Organization
  83.  
  84. CIPHER LIST (preference: speed)
  85. ===============================
  86. ECDHE-RSA-AES128-GCM-SHA256
  87. ECDHE-ECDSA-AES128-GCM-SHA256
  88. ECDHE-RSA-AES128-SHA256
  89. ECDHE-ECDSA-AES128-SHA256
  90. DHE-RSA-AES128-GCM-SHA256
  91. DHE-RSA-AES128-SHA256
  92. ECDH-RSA-AES128-GCM-SHA256
  93. ECDH-ECDSA-AES128-GCM-SHA256
  94. ECDH-RSA-AES128-SHA256
  95. ECDH-ECDSA-AES128-SHA256
  96. AES128-GCM-SHA256
  97. AES128-SHA256
  98. ECDHE-RSA-AES256-GCM-SHA384
  99. ECDHE-ECDSA-AES256-GCM-SHA384
  100. ECDHE-RSA-AES256-SHA384
  101. ECDHE-ECDSA-AES256-SHA384
  102. DHE-RSA-AES256-GCM-SHA384
  103. DHE-RSA-AES256-SHA256
  104. ECDH-RSA-AES256-GCM-SHA384
  105. ECDH-ECDSA-AES256-GCM-SHA384
  106. ECDH-RSA-AES256-SHA384
  107. ECDH-ECDSA-AES256-SHA384
  108. AES256-GCM-SHA384
  109. AES256-SHA256
  110. ECDHE-RSA-AES128-SHA
  111. ECDHE-ECDSA-AES128-SHA
  112. DHE-RSA-AES128-SHA
  113. ECDH-RSA-AES128-SHA
  114. ECDH-ECDSA-AES128-SHA
  115. AES128-SHA
  116. ECDHE-RSA-AES256-SHA
  117. ECDHE-ECDSA-AES256-SHA
  118. DHE-RSA-AES256-SHA
  119. ECDH-RSA-AES256-SHA
  120. ECDH-ECDSA-AES256-SHA
  121. AES256-SHA
  122. DHE-RSA-CAMELLIA128-SHA
  123. CAMELLIA128-SHA
  124. DHE-RSA-CAMELLIA256-SHA
  125. CAMELLIA256-SHA
  126. ECDHE-RSA-RC4-SHA
  127. ECDHE-ECDSA-RC4-SHA
  128. ECDH-RSA-RC4-SHA
  129. ECDH-ECDSA-RC4-SHA
  130. RC4-SHA
Advertisement
Add Comment
Please, Sign In to add comment