{"id":175,"date":"2022-09-09T16:21:11","date_gmt":"2022-09-09T14:21:11","guid":{"rendered":"http:\/\/cimalink.eu\/blog\/?p=175"},"modified":"2022-09-09T16:21:11","modified_gmt":"2022-09-09T14:21:11","slug":"dovecot-missing-dh-pem-for-ssl-communication","status":"publish","type":"post","link":"https:\/\/cimalink.eu\/blog\/dovecot-missing-dh-pem-for-ssl-communication\/","title":{"rendered":"dovecot missing dh.pem for ssl communication"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td>When updating dovecot, my ssl configuration stopped working because ssl_dh parameter was missing in \/etc\/dovecot\/conf.d\/10-ssl.conf.<br>I had to generate dh.pem and add it to 10-ssl.conf myself.<\/td><\/tr><tr><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Update has broken Dovecot config, it&#8217;s possibile you dont have dh.pem and only fullchain.pem \/ privkey.pem (Let&#8217;s Encrypt)<br><\/p>\n\n\n\n<p>&#8212; FIX &#8212;<\/p>\n\n\n\n<p># openssl dhparam -out \/etc\/dovecot\/dh.pem 4096 -days 3650<br>Generating DH parameters, 4096 bit long safe prime, generator 2<br>This is going to take a long time&#8230;&#8230;&#8230;<\/p>\n\n\n\n<p>&#8212; CONFIG &#8212;<\/p>\n\n\n\n<p>sudo vi \/etc\/dovecot\/conf.d\/10-ssl.conf<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; EXAMPLE &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n\n\n\n<p>ssl = yes<br>ssl = required<\/p>\n\n\n\n<p>ssl_cert = &lt;\/etc\/letsencrypt\/live\/myserver.xyz\/fullchain.pem<br>ssl_key = &lt;\/etc\/letsencrypt\/live\/myserver.xyz\/privkey.pem<br>ssl_dh = &lt;\/etc\/dovecot\/dh.pem<\/p>\n\n\n\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; EXAMPLE &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n\n\n\n<p>Remember to restart dovecot:<br># systemctl restart dovecot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When updating dovecot, my ssl configuration stopped working because ssl_dh parameter was missing in \/etc\/dovecot\/conf.d\/10-ssl.conf.I had to generate dh.pem and add it to 10-ssl.conf myself. Update has broken Dovecot config, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":82,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[47,81,80,8],"class_list":["post-175","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-debian-10","tag-dh-pem","tag-dovecot","tag-linux"],"_links":{"self":[{"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/posts\/175","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":1,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":176,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/posts\/175\/revisions\/176"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/media\/82"}],"wp:attachment":[{"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cimalink.eu\/blog\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}