Skip to content

Instantly share code, notes, and snippets.

@andrewlkho
Created April 14, 2014 12:29
Show Gist options
  • Save andrewlkho/10643479 to your computer and use it in GitHub Desktop.
Save andrewlkho/10643479 to your computer and use it in GitHub Desktop.
Import SSL certificate for use in msmtp

With the recent heartbleed SSL vulnerability, FastMail have updated their SSL certificates. Here's how to download the certificate and convert it into PEM form.

Find out which certificate you need:

% msmtp -a fastmail --tls-certcheck=off --tls-trust-file= --serverinfo

Download the certificate:

% curl -O https://www.digicert.com/CACerts/DigiCertHighAssuranceCA-3.crt

Convert it into PEM format:

% openssl X509 \
> -inform DER -in DigiCertHighAssuranceCA-3.crt \
> -outform PEM -out DigiCertHighAssuranceCA-3.pem
@jezen
Copy link

jezen commented Dec 16, 2020

@huynhtanloc2612 Excellent. Thanks for documenting your steps here 👍

@ProjectJYL
Copy link

I was able to send mails following all the steps provided. Thanks guys for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment