Manually Rotate a Submission Key#
It may be necessary to manually generate and a new Submission Key and install it on your Journalist and Admin Workstations.
Create the Submission Key#
Generate a SecureDrop Submission Key on a Journalist Workstation using the steps below.
If not already, boot and log into Qubes OS.
Open a
dom0terminal (
▸
▸ Other ▸ Xfce Terminal).Run the following command:
gpg --full-generate-key
When it says Please select what kind of key you want, choose “(1) RSA and RSA (default)”.
When it asks What keysize do you want?, type
4096.When it asks Key is valid for?, press Enter. This means your key does not expire.
It will let you know that this means the key does not expire at all and ask for confirmation. Type y and hit Enter to confirm.

Next it will prompt you for user ID setup. Use the following options: - Real name: “SecureDrop” - Email address: leave this field blank - Comment:
[Your Organization's Name] SecureDrop Submission KeyGPG will confirm these options. Verify that everything is written correctly. Then type
Ofor(O)kayand hit enter to continue:
A box will pop up asking you to type a passphrase. Since the key is protected by the Qubes’s full disk encryption, it is safe to simply click OK without entering a passphrase.
The software will ask you if you are sure. Click Yes, protection is not needed.
The prompt for a passphrase will appear again. Repeat the last two steps, clicking OK and then Yes, protection is not needed.
Wait for the key to finish generating.
Move the Submission Keypair#
The Submission Secret Key should be moved to a specific location in dom0 where it will be used by SecureDrop.
Enter the follow commands in the same
dom0terminal.To list to list the details of the key you just generated, including its fingerprint run:
gpg -K --show-colons --fingerprint
The key fingerprint is the series of letters and number on the line starting with
frp::. Copy this fingerprint (without the colons) and paste it where<KeyFingerprint>appears in the next command. This will export the Submission Secret Key to a temporary file:gpg --export-secret-keys --armor <KeyFingerprint> > /tmp/sd-journalist.sec
Verify that the files starts with
-----BEGIN PGP PRIVATE KEY BLOCK-----using the command:head -n 1 /tmp/sd-journalist.sec
If you don’t see
-----BEGIN PGP PRIVATE KEY BLOCK-----as the output of the previous command, go back and make sure you’ve entered the<KeyFingerprint>correctly.Run the following command to move your new Submission Secret Key to its final destination:
sudo mv /tmp/sd-journalist.sec ~/.config/securedrop-manage/
Now that we have moved the Submission Secret key we can remove the
gpgkeyring by running:rm -rf ~/.gnupg
Apply configuration with the new key#
To apply the changes to your Journalist Workstation, you will need to run:
securedrop-manage configure --target journalist