# 2048 bit Diffie-Hellman Params are too weak

**URL:** <https://meta.discourse.org/t/2048-bit-diffie-hellman-params-are-too-weak/54684>\
**Category:** Feature\
**Created:** [Décembre 23, 2016, 1:25 UTC](https://meta.discourse.org/t/2048-bit-diffie-hellman-params-are-too-weak/54684 "2016-12-23T01:25:29Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![robbyoconnor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robbyoconnor/32/120330_2.png) [@robbyoconnor](https://meta.discourse.org/u/robbyoconnor)\
**Post date:** [Décembre 23, 2016, 1:25 UTC](https://meta.discourse.org/t/2048-bit-diffie-hellman-params-are-too-weak/54684/1 "2016-12-23T01:25:29Z")

</div>

Continuing the discussion from

[https://meta.discourse.org/t/prime-calculation-for-openssl-just-goes-on/54653](https://meta.discourse.org/t/prime-calculation-for-openssl-just-goes-on/54653)

I believe that 2048 bit dhparams is too weak. I was the guy who introduced [this PR](https://github.com/discourse/discourse_docker/pull/315) – to make it more secure.

I think we should make this a configuration option that is passed to the ssl template. Let’s open a discussion about how this could be done. 4096 bits is the right way to go about.

If none of this works for the majority – nginx will work fine without dhparams. You can boot discourse, and then generate dhparams while it is running by entering the web container. It’d add a manual step, but you can get your site up and go and grab a cup of coffee or tea while it does its magic.

---

_[View the full topic](https://meta.discourse.org/t/2048-bit-diffie-hellman-params-are-too-weak/54684)._
