.gpg PGP/MIME-encrypted message header
Other formats
| MIME type | application/pgp-encrypted application/pgp-keys application/pgp-signature |
|---|---|
| Description | PGP/MIME-encrypted message header |
| Category | Other formats |
| Other extensions | .asc, .pgp |
Frequently asked questions
What is a .gpg file?
The .gpg extension is used for several formats: PGP/MIME-encrypted message header (application/pgp-encrypted), PGP keys (application/pgp-keys) and Detached OpenPGP signature (application/pgp-signature).
How do I open a .gpg file?
With the program that created the file. On Linux, xdg-mime query default with the MIME type shows the default application, and xdg-open opens the file with it.
How can you tell a genuine .gpg file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.gpg shows the guessed type.
Which MIME type belongs to .gpg?
The MIME type is application/pgp-encrypted. In the Apache web server: AddType application/pgp-encrypted .gpg; in nginx: types { application/pgp-encrypted gpg; }.