.cer
format is used for installing CA
certificates into a browser.
rm -rf /etc/mail/spamassassin/certs mkdir -p /etc/mail/spamassassin/certs ( cd /etc/mail/spamassassin/certs openssl genrsa 2048 > ca-key.pem openssl req -new -x509 -nodes -days 1000 -key ca-key.pem > ca-cert.pem openssl req -newkey rsa:2048 -days 1000 \ -nodes -keyout server-key.pem > server-req.pem [enter whatever random data you feel like] openssl x509 -req -in server-req.pem -days 1000 \ -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 > server-cert.pem )