apache: Use only TLS1.3 where available
This commit is contained in:
parent
baf0b53d97
commit
e571d171da
2 changed files with 7 additions and 3 deletions
21
roles/apache/templates/ssl.conf.j2
Normal file
21
roles/apache/templates/ssl.conf.j2
Normal file
|
@ -0,0 +1,21 @@
|
|||
##
|
||||
## SSL Global Context
|
||||
##
|
||||
## All SSL configuration in this context applies both to
|
||||
## the main server and all SSL-enabled virtual hosts.
|
||||
##
|
||||
|
||||
Listen 443
|
||||
|
||||
# Use Mozilla recommended settings
|
||||
{% if ansible_os_family == "RedHat" and ansible_distribution_major_version|int >= 8 %}
|
||||
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 -TLSv1.2
|
||||
{% else %}
|
||||
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
|
||||
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
|
||||
{% endif %}
|
||||
SSLHonorCipherOrder off
|
||||
SSLSessionTickets off
|
||||
|
||||
SSLUseStapling On
|
||||
SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
|
Loading…
Add table
Add a link
Reference in a new issue