Giter Club home page Giter Club logo

Comments (4)

JonasAlfredsson avatar JonasAlfredsson commented on May 28, 2024

Hi navjotjsingh,

Interesting find, I will look into it but if what you say is true then I don't see any issues merging this.
However, what spurred this change? Are there usecases where a lot of diffie hellman parameters are generated?

from docker-nginx-certbot.

navjotjsingh avatar navjotjsingh commented on May 28, 2024

I don't know of any such use cases. I suggested it just because it can greatly speed up the process.

from docker-nginx-certbot.

JonasAlfredsson avatar JonasAlfredsson commented on May 28, 2024

I am not convinced this is the recommended setting when creating a DH parameter which will be quite static throughout the server's lifetime:

DH parameter generation with the -dsaparam option is much faster, and the recommended exponent length is shorter, which makes DH key exchange more efficient. Beware that with such DSA-style DH parameters, a fresh DH key should be created for each use to avoid small-subgroup attacks that may be possible otherwise. 

OpenSSL docs

and the discussion here: ansible/ansible#61967

If the delay of creating these are too great to handle you can always pre-compute them on another device and copy it to the location you want.

Also: https://www.openssl.org/news/secadv/20160128.txt

from docker-nginx-certbot.

JonasAlfredsson avatar JonasAlfredsson commented on May 28, 2024

I have been thinking about this for a while and I think we should keep the default OpenSSL behavior.

If fast dhparam creation is necessary one can follow the Mozilla recommendation and just download some parameters:

curl https://ssl-config.mozilla.org/ffdhe2048.txt > /path/to/dhparam

seems you can fetch even more from here.

from docker-nginx-certbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.