Error: Diffie-Hellman key exchange requested, but no DH parameters provided

SYSTEM INFORMATION
OS type and version AlmaLinux 8.8
Webmin version 2.021
Usermin version 1.861
Virtualmin version 7.7
Theme version 20.21
Package updates All installed packages are up to date

I’m getting the error: dovecot[700532]: imap-login: Error: Diffie-Hellman key exchange requested, but no DH parameters provided. Set ssl_dh=</path/to/dh.pem

But checking dovecot’s 10-ssl.conf file it has the config comented out

# SSL DH parameters
# Generate new params with `openssl dhparam -out /etc/dovecot/dh.pem 4096`
# Or migrate from old ssl-parameters.dat file with the command dovecot
# gives on startup when ssl_dh is unset.
#ssl_dh = </etc/dovecot/dh.pem

Any ideas where else this key could be called from?

Have a look at this thread:

1 Like

Thank you i’ve generated the dh.pem key (it took a while) and uncommented that line in 10-ssl.conf and it solve it.

Thanks for the feedback! We’re very glad to hear that it worked for you!