CH-J Toolsserver management over SSH
Menu
All guides and articles →

How to verify OpenPGP compatibility between different applications

Repeatable test of certificate import, signatures, encryption, and certificate completeness. How to recognize limited support and create a usable record of the results.

Compatibility is not the only green switch

A program may load the public key but not be able to verify its signature algorithm, use the encryption subkey, or import the protected private part. The keyserver may accept the upload and return a shortened certificate. Therefore, formulate the question specifically: which applications, versions, formats, and operations should work together.

For your own test, prepare a matrix of directions. Verify the signature from application A in B and the signature from B in A. For encryption, the options may vary depending on the sending and receiving programs. Success in one direction does not automatically confirm the opposite. Also include updating the existing key if you use such a procedure in production.

Record the profile of the material being tested

Provide the key packet version, primary algorithm, subkey roles and algorithms, expiration, and private export protection method. For the signature, also record its form and the profile used. An asc file can be a key, a signature, or a message; its extension alone does not specify what the receiving program should do.

Record the exact version and build of each application and the relevant security policy. Another policy may reject a weak key even if the parser recognizes it. Distinguish between technical ignorance of the algorithm and deliberate rejection by the rules. Disabling all checks for successful import is not equivalent to normal supported compatibility.

Work in a separate test environment

Use test identities and harmless files without personal data. Do not upload private keys to a public keyserver and do not use the production directory as a test repository. For GnuPG, you can choose a separate home directory with appropriate permissions. An independent environment helps to reveal that the import really supplied the necessary material and the test failed due to an older local copy.

# Vytvořte samostatný testovací adresář, ne cestu k ostrému keyringu.
mkdir -m 700 ./pgp-test-home
gpg --homedir ./pgp-test-home --import verejny-klic.asc
gpg --homedir ./pgp-test-home --with-subkey-fingerprint --list-keys

The commands show isolation and inspection of the public part, not automatic proof of trust. Verify the entire expected fingerprint separately. After the test, keep only the necessary public evidence and safely terminate work with temporary private material.

Verify the structure, then the actual operations

After import, compare the primary fingerprint, identities, subkeys, and validity of the binding signatures. The revocation and expiration status are also important. A snapshot with the same primary fingerprint does not prove that all subkeys remain available. If the target program only supports part of the certificate, describe exactly which parts it retained and which operations it affects.

Sign a known test file and verify it in a second application. Then modify the copy of the file and confirm that the verification of mismatched bytes fails. This negative test will help detect input confusion or message misreading. When verification is successful, still distinguish between mathematical validity and trust in the key owner.

For encryption, create a harmless message for the expected subkey and decrypt it at the recipient. Compare the recovered bytes with the original. It is not enough that the sender created a file with the gpg extension. Also confirm support for the actual encryption profile used, not just importing the public key.

Include transport and certificate changes

If you are using a keyserver, only perform public uploads and subsequent downloads in an appropriate approved test. The reverse integrity and cryptographic validity of the result are important. Public services may filter identities, foreign certifications, or unsupported packets. Such behavior may not be as significant as primary key corruption.

Separately test the subkey addition, expiration change, and revocation distribution in an isolated environment. The first import and the update merge are different paths. Document the negative result before trying again so that it is not unclear later whether the change was caused by an application update, a different profile, or a manually added missing package.

How to write down results honestly

Use separate states for each cell of the matrix: verified, failed, not supported, not done. Record the stage, return status, and cleaned up diagnostics. HTTP 200, zero process return, and correct cryptographic operation are not always the same thing. The tool may successfully output a limited result while rejecting some items.

For CH-J Tools, compare the specific exported profile with the actual counterparty. For CH-J Keys2, verify the full return of the certificate and its role, not just its presence on the page. The methodology article is not itself a new test of all supported products: the measured claim must have its own dated evidence.

Minimum applicable test protocol

  • Version and environment of applications A and B.
  • Public and possibly private test key profile.
  • Import, structural check and verification of the entire print.
  • Signing and encryption in the necessary directions including a negative test.
  • Update, revocation and rollback from the keyserver in use.

Such a protocol will allow you to re-check after an update or explain specific limitations to a colleague. A general label supporting OpenPGP is a useful starting point for selection, but the operational decision should be based on the operations that your actual combination of programs and formats actually completes.

Frequently asked questions

Is a successful public key import enough?

No. Verify completeness and actual required operations.

Do I have to try both directions of communication?

Yes, if you need them operationally. The capabilities of the two directions may differ.

Why use a separate keyring?

So that the test is not affected by previously stored keys and does not hit sharp identities.

Detailed documentation

IETF: OpenPGP format and authentication →

GnuPG: commands and key management →

OpenPGP: standard and implementation →

Biometric unlock and security →

All tutorials by category →