Datatypes › Cryptographic identifiers

OpenPGP public key block

ID pgp_public_key_block

DatatypeNot PIIDraft

This record is a draft: it has not been reviewed yet and may be incomplete or wrong. Do not rely on it for compliance decisions. Help improve it (see CONTRIBUTING.md).

OpenPGP public key (certificate) in ASCII armor: Radix-64 text between -----BEGIN PGP PUBLIC KEY BLOCK----- and -----END PGP PUBLIC KEY BLOCK----- (RFC 9580, section 6.2), as exported by gpg --armor --export and published on key servers. It holds no secret material; for the secret key see pgp_private_key_block.

Categories
Cryptographic identifiers
Countries
Global (not tied to a country)
Languages
Common to most languages
MISP attribute type
pgp-public-key
Quality
88/100 · missing: second example, translation
Metacrafter rules
no detection rule yet
Supported by tools
pyWhat

Regular expression

^-----BEGIN PGP PUBLIC KEY BLOCK-----[\s\S]+-----END PGP PUBLIC KEY BLOCK-----$

Python re syntax.

Test a value

Examples

ValueDescription
-----BEGIN PGP PUBLIC KEY BLOCK----- xjMEU/NfCxYJKwYBBAHaRw8BAQdAPwmJlL3ZFu1AUxl5NOSofIBzOhKA1i+AEJku Q+47JAY= -----END PGP PUBLIC KEY BLOCK----- Sample version 4 Ed25519 key of RFC 9580, appendix A.1
-----BEGIN PGP SIGNATURE----- iF4EABYIAAYFAlX5X5UACgkQjP3hIZeWWpr2IgD/VvkMypjiECY3vZg/2xbBMd/S ftgr9N3lYG4NdWrtM2YBANCcT6EVJ/A44PV/IgHYLy6iyQMyZfps60iehUuuYbQE -----END PGP SIGNATURE----- invalid OpenPGP signature of RFC 9580, appendix A.2

Sources

Use this record