Skip to content

Commit

Permalink
Merge pull request #1326 from roots/remove-ssl_dhparam
Browse files Browse the repository at this point in the history
Remove ssl_dhparam and Diffie-Hellman group
  • Loading branch information
swalkinshaw authored Dec 4, 2021
2 parents f003846 + 577e6cc commit 49f5a3e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### HEAD
* Remove Nginx `ssl_dhparam` directive and Diffie-Hellman params group ([#1326](https://github.com/roots/trellis/pull/1326))

### 1.10.0: November 28th, 2021
* Default to PHP 8.0 ([#1322](https://github.com/roots/trellis/pull/1322))
* Add GitHub SSH ed25519 key to known hosts ([#1324](https://github.com/roots/trellis/pull/1324))
Expand Down
9 changes: 0 additions & 9 deletions roles/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@
path: "{{ nginx_path }}/ssl"
state: directory

- name: Generate strong unique Diffie-Hellman group.
command: openssl dhparam -out dhparams.pem 2048
args:
chdir: "{{ nginx_path }}/ssl"
creates: "{{ nginx_path }}/ssl/dhparams.pem"
when: sites_use_ssl | bool
notify: reload nginx
tags: [diffie-hellman, letsencrypt, wordpress, wordpress-setup, nginx-includes, nginx-sites]

- name: Copy h5bp configs
copy:
src: templates/h5bp
Expand Down
1 change: 0 additions & 1 deletion roles/wordpress-setup/templates/ssl.no-default.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ server {
listen 443 ssl default_server deferred;

include h5bp/directive-only/ssl.conf;
ssl_dhparam /etc/nginx/ssl/dhparams.pem;

ssl_certificate {{ nginx_path }}/ssl/no_default.cert;
ssl_trusted_certificate {{ nginx_path }}/ssl/no_default.cert;
Expand Down
1 change: 0 additions & 1 deletion roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ server {
include h5bp/directive-only/ssl-stapling.conf;
{% endif -%}

ssl_dhparam /etc/nginx/ssl/dhparams.pem;
ssl_buffer_size 1400; # 1400 bytes to fit in one MTU

{% if item.value.ssl.provider | default('manual') != 'self-signed' -%}
Expand Down

0 comments on commit 49f5a3e

Please sign in to comment.