Mailing List Archive

Export public and secret keys to the same file
Hi all,

I was happy to find I could export multiple keys to the same file but I
can't seem to figure out a clean way to export public and secret keys to the
same file. When I use --export, I get only the public keys for the ids I
specify. Is there a single command (as opposed to --export and
--export-secret-keys) to export key pairs to a file or is there some way I
can have it add to an existing file instead of overwriting? Or is there some
way I can merge two files containing exported keys?

Thanks in advance.

Krish
RE: Export public and secret keys to the same file [ In reply to ]
<<
Anything wrong with "gpg --export-keys > foo ; gpg --export-secret-keys >>
foo"
>>
Aha! Therein lies a tale. I must confess that I have this problem with a
Windows version. gpg itself works fine on my NT box but I think the shell is
doing wierd things when I try to cat files.

gpg --export --output foo works fine but gpg --export > foo doesn't. The
same goes for appending the export output to a file or appending a file to
another. From minimal research, what I think is happening is that cmd seems
to be replacing all 0xa characters with the 0xd 0xa sequence.

Its not a problem really as long as I don't depend on cmd to do the
appending for me. But I was just wondering if there was already a way to
export both kinds of keys to the same file.

Krish

-----Original Message-----
From: L. Sassaman [mailto:rabbi@quickie.net]
Sent: Monday, March 06, 2000 11:07 PM
To: Krishnan Menon (IND)
Cc: 'gnupg-users@gnupg.org'
Subject: Re: Export public and secret keys to the same file


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 6 Mar 2000, Krishnan Menon (IND) wrote:

> Hi all,
>
> I was happy to find I could export multiple keys to the same file but I
> can't seem to figure out a clean way to export public and secret keys to
the
> same file. When I use --export, I get only the public keys for the ids I
> specify. Is there a single command (as opposed to --export and
> --export-secret-keys) to export key pairs to a file or is there some way I
> can have it add to an existing file instead of overwriting? Or is there
some
> way I can merge two files containing exported keys?

Anything wrong with "gpg --export-keys > foo ; gpg --export-secret-keys >>
foo"

?

> Thanks in advance.
>
> Krish
>

__

L. Sassaman

System Administrator | "All of the chaos
Technology Consultant | Makes perfect sense..."
icq.. 10735603 |
pgp.. finger://ns.quickie.net/rabbi | --Joe Diffie



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: OpenPGP Encrypted Email Preferred.

iD8DBQE4w+zJPYrxsgmsCmoRAqwvAJ0TrDUScDOCyZ0LLYyAXgw9966MhACgv45u
q8ecFN0ehpB5V5bxPbo9PL4=
=wSiL
-----END PGP SIGNATURE-----