Importing keys

Mica Mijatovic blueness at gmx.net
Wed Sep 14 13:33:35 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: TIGER192

    Was Wed, 14 Sep 2005, at 10:42:10 +0100,
    when Bob wrote:

> I can't find anything in the man page about key import file formats.
> Other than ascii files, can GnuPG import any other file formats and if
> so what?

Every file containing a valid key data can be imported by GnuPG,
regardless the file extension and the file format.

As I know there are only two formats: ascii ("armored"), which is
actually a plain text format, and the binary format (the one not very
readable by a human).

GnuPG (as a genuinely *nix application) reads and recognizes actually
the file format primarily and doesn't pay attention at its "extension"
(as is the case with Windows).

Usually, extensions for these formats are:

ascii                 binary
=====                 ======
.txt                  .gpg
.asc                  .pgp
.sec                  .sig        etc.
.pub
.rev      etc.

GnuPG also can read (import) properly even if a file has no any
extension, and/or if a file has _any_ extension, even mangled one or
completely arbitrary one.

It will, for instance, properly import a valid key data even if a file
is with extension key.jpg (mangled extension), key (no extension) and
key.fricassee (arbitrary extension).

(PGP, though, as an exclusively Windows application, will be deluded by
such extensions, and will say it doesn't recognize the file format, even
without reading it, so that will import nothing.)

- --
Mica
PGP keys nestled at: http://bardo.port5.com/pgpkeys/
~~~ For personal mail please use my address as it is *exactly* given
                 in my "From|Reply To" field(s). ~~~
-----BEGIN PGP SIGNATURE-----

iQEVAwUBQygKjLSpHvHEUtv8AQbKmAf/ZNvAx1/8roIpW/3wJXnYTmiFqzIRDb3D
bN2S6RqXZxxH1xlKQsKsSZ7CQ72ceqY7sR/9tnXPD04YEmaXLIp8Onfl0bJmgl95
KG0JgadJB94f6Sy3ez/qjTyyBgJ23Mse1OCiBEvUyxk4Tcc1EcYFHoxNuh2eI6ez
fSsGsD8/8rTb70fzRELx0PYCeXPUFeHsLge68fEON+y8KPJmAlc9qKdVDjBsUSTv
iftJXWnqZxlXbkckx3X3GURZVHcisYHB28L8ycdBSUeQm5D0ewHmZV3NVXAtf8ba
my+NwmM+I62tegkjGRgaWx3Bin/oGg5lwiULzApq+f1TuJYj9CJyJw==
=H4Pt
-----END PGP SIGNATURE-----




More information about the Gnupg-users mailing list