Contents
- Two interfaces for distributing public certificates
- HKP typically uses operations in the query
- VKS separates search types into paths
- Upload and verification email are different operations
- HTTPS, HKPS and cryptographic backend
- Error states and safe client behavior
- Recommended integration procedure
- Frequently asked questions
Two interfaces for distributing public certificates
HKP is the traditional HTTP keyserver interface, known for example from GnuPG commands. VKS is an interface introduced by Hagrid that uses targeted paths for address lookup, upload, and verification. A single server can offer both. There are no two encryption algorithms, and the choice of path itself does not change the cryptographic structure of the stored certificate.
A well-documented contract for a specific service is important for integration. An implementation may only provide a subset of the HKP and may add its own endpoints to the VKS. Just matching the name does not guarantee all the same limits, errors, or publishing rules. Test reads, writes, and identity management separately before deploying.
HKP typically uses operations in the query
https://server.example/pks/lookup?op=get&search=0xFINGERPRINT
https://server.example/pks/lookup?op=index&options=mr&search=0xFINGERPRINTThe get operation is used to retrieve key data, the index to list matching items. The mr parameter refers to the machine-readable result of the index; it does not imply a digitally signed confirmation of identity. A particular service may only allow exact searches for a fingerprint, long Key ID, or address, and return a limited number of results.
Traditionally, the write is done at /pks/add with a keytext form field. Only pass the public certificate, never the private key. The availability of the upload does not guarantee automatic disclosure of all identities inside. The server can accept technical data and issue addresses only after separate verification.
VKS separates search types into paths
GET /vks/v1/by-fingerprint/FINGERPRINT
GET /vks/v1/by-keyid/KEYID
GET /vks/v1/by-email/URI_ENCODED_EMAILIn Hagrid's documentation, the fingerprint and long Key ID are specified in uppercase hexadecimal letters without the 0x prefix. Email must be properly encoded as part of a URL, and searches require appropriate publication consent. Do not consider the rules of a specific path as a general license to search addresses in bulk.
On success, the public key is returned in ASCII Armor format with the appropriate content type. HTTP 404 means that the request did not provide a key; it does not automatically indicate the absence of algorithm support. The client must correctly distinguish between not found, frequency throttling, and temporary service outage.
Upload and verification email are different operations
VKS upload normally accepts JSON with keytext. The response may contain a fingerprint, address status, and a non-public token for subsequent verification. The token does not belong in the public log or page source code. Please refer to the documentation of the given implementation for the exact form of binary data support and size limit.
The verification email request is a separate mutation and message send. It should not be a hidden side effect of a simple search or accessibility test. When integrating, require clear user intent and respect limits. Successful delivery and confirmation of a mailbox does not prove the entire personal identity of its holder.
HTTPS, HKPS and cryptographic backend
HKPS indicates the use of keyserver access over TLS. For the client, verify the real address of the service and the certificate. The transport protects the connection to the service; it does not replace the trusted verification of the fingerprint of the obtained OpenPGP key. The server itself does not become a universal certification authority for all display names.
Support for V6, LibrePGP V5, or post-quantum algorithms depends on the parser, verification backend, and policy. A VKS server may not know more algorithms than an HKP server, and vice versa. CH-J Keys2 offers both approaches, but its experimental and unsupported profiles need to be considered independently of the chosen path.
Error states and safe client behavior
The client should limit the download size, wait time and retry requests. For 429, respect the limits and any Retry-After. For 503, do not send the same upload or email request without checking. Check the content type, because even HTTP 200 can belong to a proxy page or a different response than you expect.
After downloading, verify the parsing, primary fingerprint, and required certificate completeness. Show the difference between not found and invalid or unsupported content. Do not fix the TLS error by disabling certificate verification. Also, when searching for email, consider whether the client is only forwarding the address to the selected server or federating it further.
Recommended integration procedure
- Select a specific service and its current documentation.
- Use the exact fingerprint if you have it installed reliably.
- Separate read queries, uploads, and sending verification messages.
- Evaluate both the HTTP status and the actual OpenPGP content.
- Test the rollback of subkeys, bindings, and revocations.
VKS can facilitate targeted application integration, HKP maintains useful compatibility with established tools. The choice depends on the client and identity management. However, neither interface alone confirms that the public key belongs to the intended person or that the server has retained every necessary part of the certificate.
Frequently asked questions
Is VKS a replacement for a cryptographic algorithm?
No. It is an interface for working with public certificates.
Does HKPS mean secure verification of the key owner?
TLS protects the transport. The binding of the public key to the owner needs to be verified separately.
Does the search have to send a verification email?
No. Reading, uploading, and requesting an email are different operations.
Detailed documentation
Hagrid: VKS and HKP documentation →