April 29, 2019

Creating ASA Cert Package from LetsEncrypt certs on Linux


openssl pkey -des -in /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -pubout /etc/letsencrypt/live/asa.wjw.nz/pubkey.pem

openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem > cert.base64
openssl base64 -in /etc/letsencrypt/live/asa.wjw.nz/privkey-enc.pem > cert.base64
openssl pkcs12 -export -out /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx -inkey /etc/letsencrypt/live/asa.wjw.nz/privkey.pem -in /etc/letsencrypt/live/asa.wjw.nz/cert.pem -certfile /etc/letsencrypt/live/asa.wjw.nz/fullchain.pem

cp /etc/letsencrypt/live/asa.wjw.nz/certificate.pfx /media/nas-backup