RustPost

Using RustPost

Encryption (OpenPGP and S/MIME)

Create or import keys, sign and encrypt messages in the webmail, publish your key, and understand what the server can and cannot see.

On this page

The webmail can sign and encrypt messages end to end with OpenPGP or S/MIME. All the cryptography happens in your browser: the server never receives your private key, your passphrase or the text of an encrypted message.

Open Settings → Security → Encryption. The page appears only if your administrator has encryption turned on.

The Encryption settings page with one OpenPGP key marked Active, Default, Published and Copy on server, the S/MIME section and the preferencesThe Encryption settings page with one OpenPGP key marked Active, Default, Published and Copy on server, the S/MIME section and the preferences

Your keys

Create an OpenPGP key

Create key makes a modern OpenPGP key (Ed25519 for signing, Curve25519 for encryption). Choose the name and addresses it is for, when it expires (1, 2 or 3 years, or never) and a passphrase of at least 12 characters.

When it is done, download two things and keep them somewhere safe: the secret key (your backup) and the revocation certificate (to announce that the key must no longer be used if you lose it).

Import a key or certificate

  • OpenPGP: import a secret key from a .asc, .gpg, .pgp or .key file, or paste it.
  • S/MIME: import a certificate with its key as a .p12 or .pfx file. Very old files protected with RC2 or 3DES are refused with a command that converts them.

What you can do with a key

Make it the default, publish it or unpublish it, keep or remove a copy on the server, extend its expiry, export the public or the secret key, revoke it (with a reason), or delete it. S/MIME certificates can be exported as PKCS #12 and published in the directory.

A copy on the server

If you choose Keep a copy on the server, the key is stored there encrypted with your passphrase, so you can unlock it on another device. The server cannot use it. The copy is only as strong as your passphrase: OpenPGP copies are protected with Argon2id, S/MIME copies with PBKDF2, which resists guessing less well. Your administrator may not allow server copies.

Keys in this browser

Keys you use are kept in this browser, still protected by your passphrase. Lock now forgets the unlocked keys; Remove keys from this browser deletes them from this browser only. How long keys stay unlocked is a preference: 5 minutes, 15 minutes, 1 hour, or until you sign out.

Writing

The composer has Sign and Encrypt buttons, a choice between OpenPGP and S/MIME, and Attach my public key. Each recipient shows where their key was found:

  • a user of this server;
  • your saved keys or your contacts;
  • the organization's directory;
  • their own domain, through WKD;
  • keys.openpgp.org, if you turned that lookup on.

If a recipient has no key, the webmail tells you before sending; if a key has changed since you last wrote, it asks you to confirm. Shortcuts: Alt+Shift+E encrypt, Alt+Shift+S sign, Alt+Shift+L lock keys.

Drafts of encrypted messages are stored encrypted.

Reading

A banner above a protected message shows its state: Encrypted, Signed by someone, key not verified, Signature not valid, Can't decrypt, or Too large (over 64 MB). Details explains what was checked. The signer is compared with the From address, and the banner is drawn outside the message so the message cannot fake it.

Other people's keys

Import correspondents' public keys (.asc, .gpg, .pgp, .key, .cer, .crt, .pem, .der), mark them as verified once you have checked the fingerprint with the person, download them or delete them. A verified key is pinned: if a different key appears for that person later, you are warned.

Preferences

  • Default type: OpenPGP or S/MIME.
  • Sign by default; encrypt whenever possible.
  • Autocrypt: send your key with your messages, and collect keys from authenticated senders.
  • Look up keys through WKD, and optionally on keys.openpgp.org (off by default). Lookups are made by the server, not your browser.
  • How long keys stay unlocked.
  • Hide the subject of encrypted S/MIME messages.

Publishing your key: WKD

When you publish an OpenPGP key, RustPost serves it through the Web Key Directory at https://openpgpkey.<your domain>/, so other people's mail apps can find it from your address. Your administrator needs the openpgpkey DNS record and certificate name; see DNS records. Published keys also appear in the organization's directory.

What the server can and cannot see

  • Cannot: your private keys, your passphrase, or the content of encrypted messages and drafts. There is no code path that sends a passphrase to the server, and administrators cannot read encrypted mail through the console.
  • Can: who writes to whom, subjects (except hidden S/MIME subjects), dates, sizes, your public keys, and everything in mail that is not encrypted.
  • Trust in the server itself. The webmail's code comes from the server. An operator who controls the server, or an attacker who takes it over, could serve modified code that captures passphrases and messages. If you cannot trust your server's operator, use a desktop mail app with its own OpenPGP or S/MIME support for encrypted mail.
  • Spam and virus filtering cannot look inside encrypted messages.
  • A lost passphrase cannot be recovered by anyone, including your administrator.

The full analysis is in Security.

Not available

Server-side signing and encryption (gateway mode), smart cards, post-quantum keys and version 6 OpenPGP keys, key servers other than keys.openpgp.org, searching inside encrypted mail, and organizational key recovery.