Generating SSL certificates for Dovecot

From JoatWiki
Jump to: navigation, search

To generate SSL certificates for Dovecot, use the following method.

If you have the following in your dovecot.conf file:

ssl_cert_file = /etc/ssl/dovecot/certs/dovecot.pem
ssl_key_file = /etc/ssl/dovecot/private/dovecot.pem

Use the following (as root) to generate the new certificates:

openssl req -new -x509 -nodes -out /etc/ssl/dovecot/certs/dovecot.pem \
  -keyout /etc/ssl/dovecot/private/dovecot.pem -days 3650

The above should all be on one line (without the "\"). It generates new X.509 certificates which are valid for 10 years.


<comments>Generating_SSL_certificates_for_Dovecot</comments>

Personal tools