If you run split-gpg2, pairing it with Sequoia-PGP is well worth considering. Written in Rust, Sequoia eliminates the memory-safety risks inherent to C-based tools like GnuPG. It also implements the modern RFC 9580 standard - offering forward-looking security like post-quantum cryptography - while GnuPG still largely sticks to the legacy RFC 4880.
Because Sequoia’s keystore differs from GnuPG’s keyring, we’ll use Sequoia’s drop-in wrapper, gpg-sq. This gives you the familiar gpg2 flags and arguments while bridging both.
- Keys generated in either tool work transparently.
- Keys imported via gpg-sq --import are accessible to native sq commands (like sq decrypt).
- Sequoia PGP has excellent documentation
While work on some compatibility issues is an ongoing effort, this guide should help you get up and running using both tools. If anyone has edge cases where standard /bin/gpg is still necessary, I’d love to hear your thoughts.
Qubes documentation on split-gpg2
Create Template
In dom0:
qvm-clone debian-13-xfce debian-13-xfce-gpg2
In debian-13-xfce-gpg2 terminal:
sudo apt install split-gpg2 sq sequoia-chameleon-gnupg
NOTE: gpg-sq gpgv-sq python3-splitgpg2 dependencies are also installed
NOTE: The command line tool sq installed here (not sequoia-sq in fedora) has been part of the Debian distro since bookworm (Debian 12).
Verify sq installed
sq version
Output at time of writing:
sq 1.3.1 using sequoia-openpgp 2.0.0 with cryptographic backend Nettle 3.10 (Cv448: true, OCB: true). On fedora: sq 1.5.0 using sequoia-openpgp 2.4.1 with cryptographic backend OpenSSL 3.5.9
Create VMs
Create gpg-client and gpg-server based on the template. In dom0:
qvm-create --label purple --property netvm=YOUR_PREFERENCE --template debian-13-xfce-gpg2 gpg-client
qvm-create --label black --property netvm="" --template debian-13-xfce-gpg2 gpg-server
Create Policy
In the Qubes documentation for split-gpg2, there’s a RPC policy file created, but I prefer using tags and a policy.d to suit since the flexibility I needed was casting a pretty wide net allowing @anyvm to ping my gpg-server. I post on it here.
Create policy for the split-gpg2-client tag:
In dom0:
sudo nano /etc/qubes/policy.d/30-user-gpg2.policy
Add to policy:
qubes.Gpg2 * @tag:split-gpg2-client @anyvm ask default_target=gpg-server
qubes.Gpg2 * @anyvm @anyvm deny
NOTE: In use, a qubes.Gpg2 pop-up confirmation prompt will appear twice when a client requests a Gpg2 action. This is normal and gives the maximum transparency and security, but I guess for some workflows it could be a PITA for a pop-up every time. Policy can be adapted.
Create Tag for Policy
To allow any gpg-client to interact with gpg-server, a tag needs to be added. In dom0:
qvm-tags gpg-client add split-gpg2-client
See Qubes tags doc to verify tags
Enable Service
In dom0 (note gpg-client needs to be running for this to take):
qvm-service -e gpg-client split-gpg2-client
Create Environment Variable
In gpg-client template (thanks to @xyhhx):
mkdir -p ~/.config/environment.d
cat << 'EOF' > ~/.config/environment.d/qubes-split-gpg2.conf
SPLIT_GPG2_SERVER_DOMAIN=gpg-server
EOF
NOTE: client needed a restart for it to take
Verify the variable is in place. In client:
systemctl --user show-environment | grep SPLIT_GPG2
Output should be:
SPLIT_GPG2_SERVER-DOMAIN=gpg-server
DONE
Additional Clients
If you prefer, the original gpg-client can be deleted and other VMs can be designated as gpg-clients.
Example:
If the target client is any DispVM based on default-dvm, the split-gpg2 and sequoia packages need to be installed in the parent template (fedora-44-xfce) using:
sudo dnf install split-gpg2 sequoia-sq sequoia-chameleon-gnupg
In addition, a tag needs to be created and the service enabled for default-dvm. In dom0:
qvm-tags default-dvm add split-gpg2-client
qvm-service -e default-dvm split-gpg2-client
NOTE: The Environment Variable also needs to put in place in any gpg-client (see above). In the default-dvm example, this needs to happen in default-dvm template.
Restart
Verify sq installed (see above)
Comments and suggestions are very welcome.