Encrypted email rests on one thing you must look after: your OpenPGP key pair. The public key is the half you share, so people can encrypt messages to you. The secret key is the half that decrypts them, and it never leaves your devices. Create the pair once in Thunderbird, protect it with a Primary Password, back it up somewhere other than your computer, and use the same key on every device you read mail on.
This is part 2 of a three-part series, after why we ask clients to encrypt sensitive email with OpenPGP.
Before you start
A key pair is two linked files. Think of the public key as an open padlock you hand out freely: anyone can snap it shut on a box, but only your secret key opens it again.
Your public key can go anywhere. It can sit on a website, a keyserver or in every email you sign.
Your secret key must stay private, because whoever holds it can read your encrypted mail and sign messages as you.
Thunderbird uses its own encryption library, so everything happens inside the app. In outline, from Mozilla's guide:
Our help article How to set up OpenPGP encryption keys in Thunderbird goes through each screen. Menu names change between Thunderbird versions, so follow the labels on your screen if they differ.
If you already have a key from another app, import it rather than making a second one, so people can keep writing to you with the key they already have.
Without one, your keys are unprotected on disk. Mozilla warns that without a Primary Password, the OpenPGP keys in your Thunderbird profile are unprotected. Anyone, or any program, that can read your profile folder could copy them.
To set it, open the Thunderbird menu, choose Settings, then Privacy & Security, and under Passwords tick Use a Primary Password. Thunderbird asks for it once per session.
Choose it carefully. Use a long password you can remember and do not use anywhere else. Mozilla notes that a forgotten Primary Password cannot be recovered, only reset, which deletes the stored credentials.
Back it up away from the computer. Mozilla's guide says to back up your key and store it somewhere secure, separate from your regular computer. If you lose your computer or erase its data, you can no longer read your encrypted messages, and Mozilla's introduction is blunt about it:
"Your messages are not recoverable in any way, by anyone, if this happens."
A failed disk, a stolen laptop or a reinstalled computer would take every encrypted message with it, including the copies in your Sent folder. People could also keep sending you mail you can no longer read.
To make the backup:
Use the same personal key everywhere you read mail. Mozilla notes that all your devices need the same key to read the same mail. Import the backup into Thunderbird on a second computer, into the free OpenKeychain app for Thunderbird for Android, or into the Mailvelope extension for webmail.
| Where you read mail | Where the key goes | Guide |
|---|---|---|
| A second computer | Thunderbird, by importing the backup | How to set up OpenPGP encryption keys in Thunderbird |
| An Android phone | The free OpenKeychain app, used by Thunderbird for Android | How to use OpenPGP encryption on Android with Thunderbird |
| Webmail | The Mailvelope browser extension | How to encrypt webmail with Mailvelope and OpenPGP |
Read next:
If your organisation would like its mailboxes on a mail server of its own, with two-factor authentication for users, ask Noiz about Private Email, which is quoted for each deployment.
Note: while some of this content was produced with the help of AI, the final editing has been done by a real human being.