Skip to content

Instantly share code, notes, and snippets.

@lnksz
Created April 3, 2025 15:23
Show Gist options
  • Save lnksz/e6adc320f93163f0aa79d69c197a1d11 to your computer and use it in GitHub Desktop.
Save lnksz/e6adc320f93163f0aa79d69c197a1d11 to your computer and use it in GitHub Desktop.
s/mime export/import in thunderbird

Problem

If thunderbird, doesn't import automatically the sender's S/MIME certificate, then this is how one can "quickly" extract it from a signed message and import it to Thunderbird

Solution

  1. On a signed message right click and "save as" an .eml file (e.g. tom.eml)
  2. Extract the the certificate with openssl NAME=tom openssl smime -verify -in "$NAME.eml" -signer "$NAME.pem"
  3. Add the pem certificate to the "peoples" tab in settings>certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment