imap/pop3 certificate expired?

When i try to download email, the client tell me "certificate on server is expired… "
When can i update it and generate a new one?


ok, i found a post here, and i’ve done:

cp /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/private/ssl-cert-snakeoil.key-backup

cp /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/certs/ssl-cert-snakeoil.pem-backup

openssl genrsa -out server.key 1024

openssl req -new -x509 -key server.key -out server.pem -days 1826

mv server.pem /etc/ssl/certs/ssl-cert-snakeoil.pem

mv server.key /etc/ssl/private/ssl-cert-snakeoil.key

/etc/init.d/dovecot restart

Great, glad you got it!

Alternatively, if you have any SSL certificates setup for your Virtual Servers in Virtualmin, what you can go is go into Server Configuration -> Manage SSL Certificates, and click “Copy to Dovecot”.