PGP keyrings
PGP keyring for signing or decrypting
ASC-based or PGP-based keyrings can be read and used for decryption. Please note that only the private key should be included in the keyring. If the ASC keyring contains both private and public key, the private key must come before the public key. The keys can be up to 4096 bytes long.
An example of the ASC format with both keys.
----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v2
lQO+BFitREkBCAC/qokzsIebntc0tFgv/1/aZHIA14ApAxVBndvaHkV8FbeNDwhr
...
rAM01g1berpRtKFoqDmFtBMJ
=5DCI
-----END PGP PRIVATE KEY BLOCK-----
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFitREkBCAC/qokzsIebntc0tFgv/1/aZHIA14ApAxVBndvaHkV8FbeNDwhr
...
g3UrMcjPDVsDEV79oZ+sAzTWDVt6ulG0oWioOYW0Ewk=
=NhZw
-----END PGP PUBLIC KEY BLOCK------
The PGP format is a binary format and can only be read with special programs.
See preparser PGPDecryption.
PGP keyring for encryption
ASC-based or PGP-based keyrings can be read and used for encryption. Please note that only the public key may be included in the keyring. Since more than one public key can be contained in a keyring, an addressing of the entry by the email address is required. The keys can be up to 4096 bytes long.
An example of ASC format with public key.
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQENBFitREkBCAC/qokzsIebntc0tFgv/1/aZHIA14ApAxVBndvaHkV8FbeNDwhr
...
g3UrMcjPDVsDEV79oZ+sAzTWDVt6ulG0oWioOYW0Ewk=
=NhZw
-----END PGP PUBLIC KEY BLOCK------
The PGP format is a binary format and can only be read with special programs.
See postexecuter PGPEncryption.
Tool for PGP keys
There is a useful freeware tool to manage or create the keys for PGP. The tool is called "Kleopatra" and is part of GPG4WIN.
If keys are not readable, you can import the keys and export them as ASC or PGP to make them readable.