Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

Finding key ID of a keypair

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


dion at thinkmoult

Nov 8, 2009, 8:19 AM

Post #1 of 5 (740 views)
Permalink
Finding key ID of a keypair

Hello,

I've got myself a DSA keypair, just two files - one being the public key and
the other being the private. I'm trying to find out the ID of that keypair.
However this keypair doesn't show up when I do gpg --list-keys. It's
passphraseless, it's DSA, and that's pretty much all I know. I made it quite a
long time ago, perhaps through ssh-keygen. Is there perhaps a way to add it to
the --list-keys list or find out the keypair ID through an alternative method?

--
Dion Moult :-)
Attachments: signature.asc (0.19 KB)


wk at gnupg

Nov 9, 2009, 2:39 AM

Post #2 of 5 (690 views)
Permalink
Re: Finding key ID of a keypair [In reply to]

On Sun, 8 Nov 2009 17:19, dion [at] thinkmoult said:

> I've got myself a DSA keypair, just two files - one being the public key and
> the other being the private. I'm trying to find out the ID of that keypair.

A mere

gpg OURFILE

will do


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


dion at thinkmoult

Nov 9, 2009, 4:08 AM

Post #3 of 5 (698 views)
Permalink
Re: Finding key ID of a keypair [In reply to]

On Monday 09 November 2009 18:39:27 Werner Koch wrote:
> On Sun, 8 Nov 2009 17:19, dion [at] thinkmoult said:
> > I've got myself a DSA keypair, just two files - one being the public key
> > and the other being the private. I'm trying to find out the ID of that
> > keypair.
>
> A mere
>
> gpg OURFILE
>
> will do
>
>
> Salam-Shalom,
>
> Werner
>

Unfortunately it didn't seem to do anything:

localhost ~/.ssh # gpg myfile.key
gpg: no valid OpenPGP data found.
gpg: processing message failed: Unknown system error
localhost ~/.ssh # gpg myfile.pub
gpg: no valid OpenPGP data found.
gpg: processing message failed: Unknown system error

Where myfile.key is the file containing the private key and myfile.pub is the
file containing the public key.

--
Dion Moult :-)
Attachments: signature.asc (0.19 KB)


wk at gnupg

Nov 9, 2009, 6:37 AM

Post #4 of 5 (688 views)
Permalink
Re: Finding key ID of a keypair [In reply to]

On Mon, 9 Nov 2009 13:08, dion [at] thinkmoult said:
> localhost ~/.ssh # gpg myfile.key
> gpg: no valid OpenPGP data found.
> gpg: processing message failed: Unknown system error

Probably not an OpenPGP key. You my try

gpg --list-packets myfile.key

to dump the packets, but this is unlikely to show something else than
running just gpg on the file.

Chech that the file is a proper OpePGP file and has been downloded
correctly. Often FTP is not used coreclty and breaks binary files.


Salam-Shalom,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users


tmz at pobox

Nov 9, 2009, 6:50 AM

Post #5 of 5 (696 views)
Permalink
Re: Finding key ID of a keypair [In reply to]

Dion Moult wrote:
> It's passphraseless, it's DSA, and that's pretty much all I know. I
> made it quite a long time ago, perhaps through ssh-keygen.

If you created the key with ssh-keygen, then it's an SSH key, not an
OpenPGP key. The two systems, ssh and gpg, do not use the same key
formats. For an ssh key, you can print out the key's fingerprint
using ssh-keygen -l -f /path/to/key

--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The only difference between a rut and a grave is the depth.

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.