Discussion:
How Do I Export Secring & Pubring Armored Files?
guitarbench
2007-07-22 05:16:21 UTC
Permalink
I've wasted about seven hours trying to do this, with no luck.

I want exportable secring.asc and pubring.asc armored text files of my entire public and private keyrings. None of the graphical front ends seem to do it, nor can I find a command line _anywhere_ that says how to do it. Incredible!

I am operating in Windows XP.

Could someone please provide me with command lines to:

1: Extract an armored text pubring.asc from pubring.pkr

2: Extract an armored text secring.asc from secring.skr

Many thanks for a quick solution!
Robert J. Hansen
2007-07-22 18:48:20 UTC
Permalink
Post by guitarbench
I've wasted about seven hours trying to do this, with no luck.
I suppose you've tried looking at the manpage?
Post by guitarbench
1: Extract an armored text pubring.asc from pubring.pkr
This looks like a PGP keyfile, not a GnuPG keyfile. GnuPG uses the .gpg
extension.

Assuming that it's really a GPG keyfile, just:

gpg --armor --export > pubring.asc
Post by guitarbench
2: Extract an armored text secring.asc from secring.skr
Again, it looks like a PGP keyfile, not a GnuPG keyfile.

gpg --armor --export-secret-key > secring.asc
guitarbench
2007-07-23 01:45:41 UTC
Permalink
Post by Robert J. Hansen
This looks like a PGP keyfile, not a GnuPG keyfile
GnuPG uses the .gpg extension.
At this point, I'm completely flummoxed. I have PGP and GPG keyrings scattered all over this computer, and I have no way of telling which ones are actually the GPG keyrings being used and maintained by WinPT, nor under which identifying extension. There's a window in WinPT that nominally tells this, but it's too short to display the path & filename and doesn't expand.

By searching, the most recently modified keyrings are those I mentioned.

I'm trying to import a keyring into Quicksilver's PGPed nym function, and on top of all this, it will not import GnuPG secure keys, apparently.

I've figured out a kludgy workaround for this, namely blowing off the GPG keys and making a new set in PGP, but most of my problem seems to be from the various PGP/GPG incompatibilities. With luck, I can import the PGP keys into GPG.

Thanks for your help.
John Clizbe
2007-07-23 05:23:42 UTC
Permalink
Post by Robert J. Hansen
This looks like a PGP keyfile, not a GnuPG keyfile
GnuPG uses the .gpg extension.
=20
At this point, I'm completely flummoxed. I have PGP and GPG keyrings=20
scattered all over this computer, and I have no way of telling which on=
es are
actually the GPG keyrings being used and maintained by WinPT, nor unde=
r
which identifying extension. There's a window in WinPT that nominally t=
ells
this, but it's too short to display the path & filename and doesn't exp=
and.

If I recall correctly, WinPT uses the default GnuPG keyring location, sub=
ject to
any redirection by gpg.conf.

The default location is %APPDATA%\GnuPG. %APPDATA% usually expands to
C:\Documents and Settings\<username>\Application Data. So the default loc=
ation
for the three keyring files, pubring.gpg, secring.gpg, and trustdb.gpg is=

C:\Documents and Settings\<username>\Application Data\GnuPG.
By searching, the most recently modified keyrings are those I mentioned=
=2E
=20
I'm trying to import a keyring into Quicksilver's PGPed nym function, a=
nd on
top of all this, it will not import GnuPG secure keys, apparently.
PGP wants the secret and public key parts in one file. GPGshell will do t=
his if
the 'Add public key to exported secret keys (PGP-style)' option is select=
ing in
GPGshell's preferences.

Or at the command line:

gpg --export 0xdecafbad > 0xdecafbad.asc
gpg --export-secret-key 0xdecafbad >> 0xdecafbad.asc

=46rom your email, you have PGP installed. Let PGP do the work for you - =
don't try
to import the keys. For the time being, PGPkeys will open GnuPG keyring f=
iles.

Open PGPkeys - this will open your default PGP keyring files. Now, from t=
he File
menu, select Open and specify the GnuPG public and secret keyring files; =
eg,

C:\Documents and Settings\<username>\Application Data\GnuPG\pubring.g=
pg
C:\Documents and Settings\<username>\Application Data\GnuPG\secring.g=
pg

when the window with your GnuPG keys opens, just select and drag&drop the=

key(pair)s you wish to copy to the PGP keyring window.

Key pairs you move will probably need to be set to 'Implicit Trust' in th=
e key's
Properties window.
I've figured out a kludgy workaround for this, namely blowing off the G=
PG=20
keys and making a new set in PGP, but most of my problem seems to be fr=
om the
various PGP/GPG incompatibilities. With luck, I can import the PGP keys=
into
GPG.
gpg --import \path\to\secring.skr
gpg --import \path\to\pubring.pkr

Key pairs imported should be checked that they are set to 'Ultimate trust=
'. This
is analogous to PGP's Implicit Trust setting.

You may set the key's trust setting with a GUI such as GPGshell or WinPT =
or from
the command line, eg. gpg --edit-key 0xdecafbad trust.


--=20
John P. Clizbe Inet: John (a) Mozilla-Enigmail.org=

You can't spell fiasco without SCO. PGP/GPG KeyID: 0x608D2A10/0x18BB373A
"what's the key to success?" / "two words: good decisions."
"what's the key to good decisions?" / "one word: experience."
"how do i get experience?" / "two words: bad decisions."

"Just how do the residents of Haiku, Hawai'i hold conversations?"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 663 bytes
Desc: OpenPGP digital signature
Url : /pipermail/attachments/20070723/21c8fd0c/attachment.pgp

Loading...