Brug Let’s encrypt sammen med Axigen Mailserver

letsencrypt-logo-horizontal

Hent og installer Let’s encrypt fra https://letsencrypt.org

cd /opt
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt

Stop mail-servern og tilse at port 80 og 443 er åbne i firewallen.

Kør

/opt/letsencrypt/letsencrypt-auto certonly --standalone --email postmaster@domain.com -d www.domain.com -d domain.com

Resultat:
IMPORTANT NOTES:
– Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/domain.com/fullchain.pem…….

Få certifikaten ordnede og på ret plads:

cat /etc/letsencrypt/live/domain.com/privkey.pem /etc/letsencrypt/live/domain.com/cert.pem > /var/opt/axigen/domain.com.pem
cat /etc/letsencrypt/live/domain.com/chain.pem /etc/letsencrypt/live/domain.com/fullchain.pem > /var/opt/axigen/CA.crt

 

Skriv et svar