Set Up S/MIME Certificates in Thunderbird for Secure Email

To configure S/MIME in Mozilla Thunderbird, install a personal email certificate with its private key, then select that certificate for digital signing and encryption under Account Settings → End-To-End Encryption. If you do not have a certificate yet, Thunderbird 128 and later can generate a certificate signing request (CSR) that you submit to a certificate authority.

The procedure below covers both situations and ends with a signed, encrypted test message. Menu names follow Mozilla's desktop Thunderbird documentation; exact placement may vary slightly by release and operating system.

Before you start: identify the certificate you need

S/MIME (Secure/Multipurpose Internet Mail Extensions) is a standard for signing and encrypting email. A digital signature helps the recipient check the sender and whether the message was altered. Encryption protects the message body so only intended holders of the appropriate private keys can read it. These are separate actions: signing does not automatically hide a message's contents.

A certificate authority (CA) verifies an identity or email address and issues a certificate connecting that identity with a public key. Its matching private key must remain under your control. You need the certificate associated with the precise email address or identity you are configuring in Thunderbird.

  • Already have a .p12 or .pfx file? These PKCS#12 files usually contain your certificate and private key. Keep the import password available, skip the CSR steps, and use the existing-certificate path in Step 5.
  • Have only a .cer, .crt, or PEM certificate? The certificate alone is not a substitute for the matching private key. Use it with a key already held by Thunderbird, or ask the issuer how the key was generated.
  • Need a new certificate? Use the CSR route below on Thunderbird 128 or later. Ask your organization's IT team which CA and certificate policy to use, if applicable.

Create a certificate request in Thunderbird

Step 1: Open the correct account's encryption settings

Open Thunderbird, select the application menu ≡ → Account Settings, and choose the email address you want to protect. Click End-To-End Encryption in the account's left navigation. For an alias or other identity, make sure you are configuring the intended identity rather than a different sender address.

Thunderbird account settings with End-To-End Encryption selected for alice@example.com and S/MIME as the security method
The selected account's End-To-End Encryption page is the starting point for S/MIME setup.

Step 2: Generate an S/MIME CSR

Scroll to S/MIME and choose Generate and save a CSR file as…. A certificate signing request (CSR) is a file containing your public key and information for a CA to use when issuing your certificate. Thunderbird creates the key pair locally and retains the private key in its certificate storage.

Mozilla documents the built-in CSR feature for Thunderbird 128 and newer; older help pages that say an external key-generation tool is always required are not applicable to this newer workflow. Follow the on-screen cryptographic defaults unless your CA or administrator specifies a supported alternative.

Thunderbird S/MIME section with Generate and save a CSR file as button
Use the S/MIME section to generate a CSR when requesting a new personal certificate.

Step 3: Save the request without losing the key

Choose a clear filename and location for the CSR, such as alice_example_com.csr, and keep Thunderbird's profile intact while the certificate is being issued. The saved CSR is not your private-key backup. Do not create a second key pair unnecessarily if you are still waiting for the certificate tied to the first request.

Windows Save As dialog with alice_example_com.csr entered as the certificate request filename
Save the certificate signing request file so it can be submitted to the certificate authority.

Step 4: Obtain the issued certificate from a CA

Follow the CA's instructions for proving control of your email address and submitting the CSR. If it asks for text, open the CSR and copy its complete content, including the BEGIN CERTIFICATE REQUEST and END CERTIFICATE REQUEST lines. Download the issued certificate and any intermediate CA certificates the issuer provides.

Check that the CA accepted a CSR rather than unexpectedly creating a separate private key for you. As Mozilla notes, receiving a .p12 or .pfx after submitting a CSR may mean that the issuer generated another key pair. Clarify this with the issuer before importing it. The CA website shown below uses an example address; the actual form varies by provider.

Certificate authority request form showing PEM certificate signing request text and a Submit CSR button
A certificate authority submission form accepts the full CSR text, including its beginning and ending markers.

Import your certificate and protect the private key

Step 5: Import the issued certificate, or an existing .p12/.pfx

Return to Account Settings → End-To-End Encryption → Manage S/MIME Certificates (the certificate manager label may be shortened in some builds).

If you created the CSR in Thunderbird: open the People tab, select Import, and choose the certificate received from the CA. Because Thunderbird already holds the matching private key, it should associate the issued certificate with your identity. If the issuer supplied intermediate certificates, import those under Authorities. Mozilla specifically advises leaving the explicit trust checkboxes unchecked when importing intermediates; importing the chain is not a reason to grant a new trust anchor.

If you already have a .p12 or .pfx file: use the Your Certificates tab and its Import option, choose the file, and provide its export password when prompted. A certificate without the matching private key cannot sign or decrypt messages for you.

Thunderbird Certificate Manager on the People tab with the Import button visible
The People tab contains the Import control used for a certificate issued from Thunderbird's CSR.

Step 6: Make a protected backup before sending encrypted email

Open Your Certificates and confirm that the new personal certificate appears. Select it, click Backup, and choose a secure, separate storage location. Protect the exported backup with a strong, unique password stored in a password manager. Do not email yourself an unprotected private-key file.

This matters beyond a reinstall: if you lose the private key, previously received encrypted messages may be unreadable even when their files still exist. If you read encrypted mail on more than one computer, import a securely transferred copy of the same personal certificate and private key on each device rather than creating unrelated identities.

Thunderbird Your Certificates tab with a personal certificate selected and the Backup button highlighted
Back up the personal certificate and its private key from Your Certificates to protected storage.

Select S/MIME for signing and encryption

Step 7: Assign the certificate to the account

Back in End-To-End Encryption, locate the S/MIME choices labeled Personal certificate for digital signing and Personal certificate for encryption. Click Select… for each and choose the new certificate. Thunderbird may offer to use the same certificate for both functions; accept that when the certificate supports both and your organization's policy allows it.

For initial testing, turn on digital signing for a message first and enable encryption deliberately rather than making every outgoing message require it. Encryption to another person requires a usable, trusted S/MIME certificate for each recipient. If both OpenPGP and S/MIME are configured, check the selected security technology in the message composer before sending.

Thunderbird End-To-End Encryption page showing a personal S/MIME certificate selected for digital signing and encryption
Choose the appropriate personal certificate for both digital signing and encryption in account settings.

Send a test message and resolve common blockers

Step 8: Confirm that signing and encryption work

  1. Compose a new email from the configured identity to your own address. Enable digital signing using the compose window's security or S/MIME controls. Send it, open the received copy, and verify that Thunderbird reports a valid signature.
  2. Compose a second message to yourself, enable encryption and signing, then send it. Open the received message and check that Thunderbird reports decryption and a valid signature. Mozilla recommends this self-addressed test after account setup.
  3. Ask one S/MIME-enabled correspondent to send you a signed message. Once Thunderbird has their usable certificate and the identity is validated, test a short encrypted reply before sending sensitive material.
Thunderbird compose window addressed to alice@example.com with signing and encryption options checked
A message addressed to the same account can test both S/MIME signing and encryption before contacting others.

If a test fails, use the symptom to choose the next check instead of repeatedly importing certificates:

What you seeCheck first
Certificate not offered in Select…Verify the sender address, certificate expiration, key usage, matching private key, and required CA chain.
.p12 or .pfx import failsConfirm the file and export password; ask the issuer for a fresh, complete PKCS#12 export if needed.
Signing works; encryption to a contact failsObtain and validate that contact's S/MIME certificate. Your own certificate alone is insufficient.
A message cannot be decrypted on another deviceConfirm the same personal private key is installed there; do not solve this by creating a new certificate.

Remember that email headers and routing information are not fully protected by end-to-end encryption. A digital signature is a useful identity check, but you should still verify an unexpected certificate or sender through a trusted channel before sending sensitive data.

Final verification

The setup is complete when Thunderbird lists your personal certificate under Your Certificates, offers it for both S/MIME functions, and correctly verifies and decrypts a signed, encrypted test email to yourself. Keep the password-protected private-key backup recoverable and renew the certificate before it expires.

Official references: Mozilla's S/MIME CSR and import procedure (updated August 29, 2025) and Thunderbird account end-to-end encryption setup. For encryption behavior and private-key recovery limitations, see Mozilla's introduction to end-to-end encryption.

Leave a Comment

PC Tips