Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 940525 - net-mail/dovecot fails with dev-libs/openssl-3.3.2: Failed to initialize SSL server context: Can't load DH parameters (ssl_dh setting): error:0A00018A:SSL routines::dh key too small
Summary: net-mail/dovecot fails with dev-libs/openssl-3.3.2: Failed to initialize SSL ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eray Aslan
URL: https://doc.dovecot.org/2.3/configura...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-30 09:36 UTC by m1027
Modified: 2024-10-02 05:58 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m1027 2024-09-30 09:36:16 UTC
Thanks for new openssl-3.3.2.

Unfortunatelly dovecot stops working, when the first client (neomutt) wants to use it:

> dovecot[470153]: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters (ssl_dh setting): error:0A00018A:SSL routines::dh key too small: user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, session=<...>

Rebuilding dovecot did not help.

Workaround:

> emerge -a1 =openssl-3.0.15 curl

Hm!
Comment 1 m1027 2024-09-30 11:38:33 UTC
Concerning possible dovecot issues after this openssl upgrade:

A failing dh.pem can be recreated like described here:

https://doc.dovecot.org/2.3/configuration_manual/dovecot_ssl_configuration/

WFM
Comment 2 gentoo 2024-10-01 11:40:50 UTC Comment hidden (offtopic)
Comment 4 Mike Gilbert gentoo-dev 2024-10-01 17:41:53 UTC
I think the easy solution here is to comment out the "ssl_dh" setting in /etc/dovecot/conf.d/10-ssl.conf.

The setting is commented out by default on new dovecot installs.
Comment 5 Eray Aslan gentoo-dev 2024-10-02 05:58:42 UTC
from the release notes of openssl-3.2.0:

The default SSL/TLS security level has been changed from 1 to 2. RSA, DSA and DH keys of 1024 bits and above and less than 2048 bits and ECC keys of 160 bits and above and less than 224 bits were previously accepted by default but are now no longer allowed

And it is not necessary, though perhaps somewhat beneficial, to generate custom DH parameters. However if you generate them, you need to maintain them.

Closing this as bug as INVALID