Allow disabling DH param generation _or_ Use RFC 7919 DH group instead of self-generation #880
Replies: 3 comments 4 replies
-
I actually brought this up earlier in the year (linked comment is hidden as off-topic) 😅
While on topic, this is probably relevant to the project too:
|
Beta Was this translation helpful? Give feedback.
-
I am contributing a PR for this to |
Beta Was this translation helpful? Give feedback.
-
@polarathene I agree with you that the use of I'm not familiar with RFC 7919 yet, if I understand correctly it recommends use of pre-generated standardized DH parameters rather than generating your own ? |
Beta Was this translation helpful? Give feedback.
-
Bug description
DH params generation is not possible to disable?:
acme-companion/app/entrypoint.sh
Lines 47 to 57 in 7f1b754
nginx-proxy
container however provides an ENV to disable generation withDHPARAM_GENERATION=false
.In my case this is for docs on a project with several popular approaches via Docker to automate cert renewal, but the project itself has it's own internal DH params file where it handles TLS connections that are not using HTTPS. AFAIK
acme-companion
andnginx-proxy
should be fine provisioning certs without requiring DH params?If DH params are actually required, or you'd prefer to not generate them.. you can use standardized RFC 7919 DH groups. The project I'm a maintainer of uses
ffdhe4096.pem
, these DH groups are generally advised to use vs generating your own. `openssl wiki advises adopting RFC 7919 too and provides the pem content too.NOTE: You are currently generating with
-dsaparam
option (notacme-companion
, onlynginx-proxy
due to some divergence), this is much faster but does pose some risk (2016 CVE advisory), as the openssl docs mention:Using DH groups from RFC 7919 is also advised by Mozilla among others, and part of TLS v1.3 (which only negotiates these DH groups IIRC, rather than custom provided ones that TLS 1.2 or earlier allow).
In the project I help maintain, we have just added a copy of
ffdhe4096.pem
to the repo and useCOPY
during Dockerfile build.acme-companion image version
No deployment, this is a feature request + advice.
nginx-proxy's Docker configuration
N/A
rendered nginx configuration
N/A
Containers logs
N/A
Docker host
N/A
Beta Was this translation helpful? Give feedback.
All reactions