Talpadk’s Blog

July 18, 2010

Renewing your Dovecot SSL certificate

Filed under: Notes — talpadk @ 9:23 am

On my Debian box the following were used:

/etc/ssl/certs/dovecot.pem and /etc/ssl/certs/dovecot.pem were the default locations check your /etc/dovecot/dovecot.conf before running.

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

/etc/init.d/dovecot restart

I got tired of renewing the certificate so I issued one that lasts 10 years.
(apparently it does not take that much to make me tired)

Advertisements

1 Comment »

  1. thanks for the info, it was very useful 🙂
    on my config i needed to use the following:
    openssl req -new -x509 -nodes -out /etc/ssl/certs/dovecot.cert -keyout /etc/ssl/private/dovecot.key -days 3650
    and for slackware the restart is
    /etc/rc.d/rc.dovecot restart
    with newer versions of dovecot the config files are in /etc/dovecot/conf.d/*.conf as well as the basic /etc/dovecot/dovecot.conf
    to check your existing files if the config is in the separate directory cat /etc/dovecot/conf.d/*.conf|grep ssl
    does the trick.

    Comment by timsoft — May 9, 2013 @ 9:24 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: