How to renew the SSL certificates for dovecot and postfix

Make a backup of the existing SSL key and certificate file cd /etc/pki/dovecot cp -a certs/dovecot.pem certs/dovecot.pem.old cp -a private/dovecot.pem private/dovecot.pem.old Create the new SSL certificate for two years: openssl genrsa -out private/dovecot.pem 1024 openssl req -new -x509 -key private/dovecot.pem -out certs/dovecot.pem -days 730 Restart Dovecot and Postfix sudo systemctl restart dovecot sudo systemctl restart postfix Check the start and end dates for the certificate: openssl x509 -dates -in certs/dovecot.pem

April 10, 2020 · 1 min · 70 words · Akhil Jalagam

How to Redirect HTTP to HTTPS in Nginx

All login credentials transferred over plain HTTP can easily be sniffed by a MITM attacker, but it is not enough to encrypt the login forms. If you are visiting plain HTTP pages while logged in, your session can be hijacked, and not even two-factor authentication will protect you. To protect all info sent between your visitors – which includes you – and your web server, we will redirect all requests that are coming over plain HTTP to the HTTPS equivalent....

October 12, 2019 · 1 min · 112 words · Akhil Jalagam