CentOS 7/8 - Dovecot issue after using unreleased install script v6.2.0

I decided to give the script a try for a new installation on CentOS 8.2. Results were good except for a minor problem with Dovecot not experienced with previous installations using install.sh v6.1.1.

doveconf: Fatal: Error in configuration file /etc/dovecot/conf.d/10-ssl.conf line 14: ssl_cert: Can't open file /etc/pki/dovecot/certs/dovecot.pem: No such file or directory

10-ssl.conf correctly points to this pair:

ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem

But the dovecot-openssl.cnf file was using /etc/ssl, so the certificate was skipped.

Dovecot provides a bash script that helps sort this out: https://wiki2.dovecot.org/SSL/CertificateCreation

One line in mkcert.sh was changed to work with CentOS.


needs to be


Then running the script fixed the problem.

Let’s Encrypt certs will replace self-signed certs but this got Dovecot running until then.


Thanks for the heads up.

I haven’t seen this error before. Is this official, minimal install of CentOS 8?

Hi Ilia,

It’s a Linode virtual machine image. Except for the kernel I believe it’s the same as a minimal install from an official image.

Everything is running great.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.