Contents
- Why is sending your public key by email not enough?
- What does a keyserver do, and what does it not do?
- Why should you upload only your public key to a keyserver?
- How do you upload a key to Keys2?
- How do you find and download a key?
- How do you update a key, extend its validity or revoke it?
- How do you manage published addresses?
- Why choose Keys2?
- How does CH-J Tools use the keyserver?
- Frequently asked questions
Why is sending your public key by email not enough?
You have created an OpenPGP key and want others to be able to send you encrypted messages or verify your signatures. The easiest way is to send your public key file as an attachment. That works once, but not in the long term: recipients have to keep the file, new colleagues do not have it, and whenever you extend the key's validity, add a subkey or revoke the key, you have to send the new version to everyone again.
A keyserver solves this problem by providing a single public location. You upload your key once, and anyone can download it using its fingerprint or a verified email address. When you update the key later, you upload the new version and the server merges it with the stored copy. The other person's software downloads the current version, including any revocation, the next time it checks.
CH-J Keys2 at keys2.ch-j.de is a keyserver running on CH-J's own infrastructure. It integrates directly with CH-J Tools and CH-J Tools Mobile, but works with any OpenPGP software, such as GnuPG, Sequoia PGP or rPGP. This is a distribution release under ongoing development; uploads, searches, address verification and identity management are all in regular use.
What does a keyserver do, and what does it not do?
A keyserver is a directory of public certificates. It does not send or encrypt messages, create keys or store passwords. A public certificate contains the primary public key, subkeys, identities (names and email addresses), and the signatures with which the holder bound these parts together. The server checks these signatures cryptographically and rejects any part that does not belong to the certificate.
- Search: by full fingerprint (40 or 64 hexadecimal characters), long Key ID (16 characters) of either the primary key or a subkey, or verified email address.
- Uploads and updates: a new version is merged with the stored copy. An older file never removes a revocation or valid signatures already held by the server.
- Address verification: an email address is published only after its owner clicks a single-use link. Uploading a key containing someone else's address does not publish that address.
- Revocation: a revoked key remains on the server so that others know they should no longer use it.
A verified email address means only that the mailbox owner confirmed the link. It does not establish the person's legal identity. For important communications, compare the key fingerprint with the other person through another channel as well, such as in person or over the phone.
Why should you upload only your public key to a keyserver?
An OpenPGP key has two parts. You can give the public part to anyone: it is used to encrypt messages for you and verify your signatures. The private part decrypts and signs, so it must stay on your device or in a secure backup. Anyone who obtains your private key can read messages intended for you and sign on your behalf.
Keys2 actively rejects private keys in both text (ASCII Armor) and binary form. Server-side protection is no substitute for care, though: always use the public-key export command and inspect the file before uploading it. A public key in text form starts with the line BEGIN PGP PUBLIC KEY BLOCK; never upload a file containing the line BEGIN PGP PRIVATE KEY BLOCK anywhere.
gpg --list-keys --keyid-format long
gpg --export --armor FINGERPRINT > public-key.asc
head -n 1 public-key.ascReplace FINGERPRINT with your key's full fingerprint from the output of the first command. A short name or email address may match several keys in your keyring; a fingerprint selects exactly one.
How do you upload a key to Keys2?
The web form is the most convenient option. Open keys2.ch-j.de, go to Upload key and select your public key file. The server first checks which email addresses in the certificate have valid signatures and presents them for you to choose from. Select the address that should receive the confirmation link and a private message with the import result.
- Export your public key to an .asc file as described in the previous section, or export it from your application.
- Open the Upload key tab on keys2.ch-j.de and add the file.
- Select an address from the certificate. The server will not accept any other address that is not signed within the key.
- Open the email and confirm using the single-use link. It is valid for two hours and expires after use.
- Search for your email address on the Keys2 home page and check that the correct fingerprint appears.
If you prefer the terminal, GnuPG can send the key directly using HKP. The certificate is stored, but email addresses remain unpublished until you verify them through Manage on the website. A name without an email address (an identity with no @ sign) is published automatically because the key holder has signed it and there is nothing to verify.
gpg --keyserver hkps://keys2.ch-j.de --send-keys FINGERPRINTThe server accepts certificates up to 1 MiB. The very old V2 and V3 formats and User Attributes (such as photos embedded in a key) are not accepted.
How do you find and download a key?
Enter a fingerprint, long Key ID or email address on the Keys2 home page. The certificate details show algorithms, subkeys, validity, revocations and a technical change history. You can download the key as an .asc or binary .pgp file and copy its fingerprint with a single button.
In GnuPG, download a key by its fingerprint. A fingerprint is unique and safer than searching by name, since anyone can put any name in a key.
gpg --keyserver hkps://keys2.ch-j.de --recv-keys FINGERPRINT
gpg --fingerprint FINGERPRINTSoftware that supports VKS can use direct URLs. These are also useful in scripts because they return only the public certificate in text form.
curl -fsS https://keys2.ch-j.de/vks/v1/by-fingerprint/FINGERPRINT -o key.asc
curl -fsS https://keys2.ch-j.de/vks/v1/by-email/name@example.org -o key.ascA search by email address returns only an address that the owner has verified and kept published. If the key is not on Keys2, you can tick the option to also search the external servers keys.openpgp.org, keyserver.ubuntu.com, pgpkeys.eu, sks.pod01.fleetstreetops.com, keys.gentoo.org, Mailvelope and Proton; the article on how Keys2 handles data explains the details.
How do you update a key, extend its validity or revoke it?
Keys change over time: you may extend their validity, add a new encryption subkey or add another email address. In each case, export the complete updated public certificate and upload it just as you did the first time. Keys2 verifies it cryptographically and merges it with the stored version. A new address goes through the same verification as the first one.
Revocation announces that a key or subkey should no longer be used, for example after a device is lost or a private key is compromised. Upload the revocation as part of an updated public certificate containing the revocation signature. If you have a revocation certificate prepared in advance, import it into your keyring first, then export the complete public key.
gpg --import revocation.rev
gpg --export --armor FINGERPRINT > revoked-key.asc
gpg --keyserver hkps://keys2.ch-j.de --send-keys FINGERPRINTKeys2 ensures that a later upload of an older copy does not remove the revocation. It also forwards a new revocation uploaded directly to Keys2, without names or email addresses, to keys.openpgp.org, keyserver.ubuntu.com, pgpkeys.eu and sks.pod01.fleetstreetops.com, but only where it previously saw the same key. Nothing is sent to a server that never had the key, so this never publishes your key anywhere. Mailvelope, Proton and keys.gentoo.org do not accept such a revocation; there you revoke the key yourself.
Create a revocation certificate as soon as you create your key and store it separately from the private key. You cannot revoke a key without either the private key or a revocation certificate prepared in advance.
How do you manage published addresses?
The Manage tab on keys2.ch-j.de handles one address at a time. Enter the fingerprint and an email address with a valid signature in the key, and Keys2 sends a single-use link to that address. After opening it and confirming, you can see the address's status and verification time, hide it, publish it again or request a new verification.
- A hidden address no longer appears in searches or exports, but the certificate containing the keys remains available by fingerprint.
- Another address in the same key requires its own link; managing one address does not give you access to the others.
- You can hide or publish names without email addresses in the same management interface.
- Links and private messages are valid for two hours. The database stores only a hash of the secret token, not the token itself.
Why choose Keys2?
There are several public keyservers, and each has its place. Keys2 was created because CH-J needed a server that could handle modern certificates in full, without stripping any parts, and integrate directly with its own applications. That is why we recommend it as the primary home for your keys.
- Modern formats: OpenPGP V4 and V6 under RFC 9580, a compatible LibrePGP V5 profile, and all seven post-quantum algorithms in RFC 9980.
- Verified email addresses: an address is published only after its owner confirms it, and the owner can hide it at any time.
- Your keys stay on Keys2: the server does not forward them anywhere. Only a new revocation without identities goes out, and only to servers that already have the key.
- Search elsewhere too: if a key is missing on Keys2, one tick also searches keys.openpgp.org, keyserver.ubuntu.com, pgpkeys.eu, sks.pod01.fleetstreetops.com, keys.gentoo.org, Mailvelope and Proton.
- Integration with CH-J Tools and CH-J Tools Mobile: publishing, availability checks, revocation and signature verification without manually copying files.
- Standard HKP and VKS interfaces over HTTPS, with IPv4 and IPv6, so it also works with GnuPG and other software.
Keys2 also took over the public keys from the original keys.ch-j.de server, where older versions of CH-J Tools published keys. Those users' keys therefore remained available at the new location.
How does CH-J Tools use the keyserver?
In CH-J Tools 0.1.3, Keychain can publish a V4 or V6 public certificate to keys2.ch-j.de, check its availability and publish a cryptographically signed revocation. Publishing is always an explicit choice; key generation and storage work without a connection to the server, and private keys stay in the local vault.
Quick signature verification can automatically download the public key from Keys2 using the fingerprint in the signature and show whether the key is revoked on Keys2. CH-J Tools Mobile offers searches on Keys2 and external servers, certificate details and history, importing into the phone's keyring, and publishing your own key.
Frequently asked questions
Do I have to verify my email address on Keys2?
No. A key without a verified address is available by fingerprint and Key ID. Verification is needed only if you want others to find you by email address.
Can someone upload a key with my email address?
They can upload it, but the address will not be published. The confirmation link goes only to your mailbox, and until you open it, no one can find the key using your email address.
Can a key be completely deleted from Keys2?
You can hide addresses and names under Manage. The server retains the public keys themselves, signatures and revocations so that others can recognise an invalid key. We assess certificate deletion requests individually as described under Privacy on keys2.ch-j.de.
Will users of keys.openpgp.org find my key from Keys2 too?
Not automatically. Keys2 does not upload certificates to other servers. If you want to be found there too, upload your key to that server separately. The exception is a new revocation, which Keys2 forwards without identities to keys.openpgp.org, keyserver.ubuntu.com, pgpkeys.eu or sks.pod01.fleetstreetops.com if it previously saw the key there.
Does Keys2 work with GnuPG?
Yes. Use --keyserver hkps://keys2.ch-j.de with --send-keys, --recv-keys or --search-keys. Software with VKS support can use the /vks/v1/ URLs.