How do I enable perfect forward secrecy by default on Apache?

后端 未结 8 2233
一向
一向 2021-01-29 18:08

Warning: please only use the recommendations for Apache configuration from the answers below. For which cipher(s) to use - security norms change over time a

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-29 18:52

    From my own understanding, you need to activate SSLHonorCipherOrder and to prepend SSLCipherSuite with ECDHE and DHE ciphers from openssl ciphers -v

    From my /etc/apache2/mods-available/ssl.conf:

    SSLHonorCipherOrder on
    SSLCipherSuite ECDHE-RSA-RC4-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:DHE-RSA-CAMELLIA128-SHA:AES128-SHA:RC4-SHA:HIGH:!aNULL:!MD5:!ADH
    

    To test your website, you can use: https://www.ssllabs.com/ssltest

    Note: Eliptic Curve DHE only seems to work with Apache 2.3.3 or higher (see source and Bruno's comment).

提交回复
热议问题