EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to determine KeyID in Public KeyRing

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#33076
Posted: 04/20/2015 15:30:08
by Bruce Randolph (Standard support level)
Joined: 03/30/2015
Posts: 5

This is my first attempt at using the OpenPGPKeyTool and I am kind of fumbling my way through the process. I managed to create a public key ring, then added a public key from another company to the ring. When I added the new key, I did not specify an ID value so now I am wondering how do I determine what the KeyID for the new key is so I can set the KeyFilter to use that key?
#33077
Posted: 04/20/2015 15:47:56
by Bruce Randolph (Standard support level)
Joined: 03/30/2015
Posts: 5

I may have figured this out, I re-imported the public key and added an email address for the ID command. The result showed it updated 1 key instead of adding a new one so maybe that worked?
#33085
Posted: 04/21/2015 03:16:13
by Ken Ivanov (EldoS Corp.)

Hi Bruce,

Thank you for your interest in our products.

Key IDs are calculated automatically from the cryptographic key material of the OpenPGP key - that is, a particular cryptographic key will always have the same ID. A typical Key ID has a length of 8 bytes and is normally represented in hexadecimal form (e.g. 0123456789ABCDEF). A shortened 4 byte format (e.g. 89ABCDEF) is also used quite often.

You can list the contents of your keyring file with the -display command of the OpenPGPKeyTool application:

OpenPGPKeyTool.exe -display -pubfile d:\mypgpkeyrings\pubring.pkr

The above command will output something like this:

Quote

EldoS OpenPGPKeyTool Utility. Version 1.1
Copyright© EldoS Corporation 2008-2014. All rights reserved.


[0] Public Key
Secret Key: N/A
KeyID: A97CE19B2A35EB74
KeyFP: 4D:52:32:BB:22:28:BA:AB:8F:1D:C1:0E:A9:7C:E1:9B:2A:35:EB:74
Algorithm: DSA (1024 bits)
Created: 2005/12/13 07:15:42
Expires: NEVER
UserID: Sample SecureBlackbox PGP key<info@eldos.com>
Signature
Type: Certification signature
Created: 2005/12/13 07:17:56
Subkey [0]
KeyID: 261AC650C502D39B
KeyFP: E1:F4:BC:0E:E9:71:49:83:68:DA:8E:A0:26:1A:C6:50:C5:02:D3:9B
Algorithm: Elgamal (encrypt-only) (2048 bits)
Created: 2005/12/13 07:17:56
Expires: NEVER
Signature
Type: Certification signature
Created: 2005/12/13 07:17:56

[1] Public Key
Secret Key: N/A
KeyID: 610E629F676783B5
KeyFP: 2B:8C:0F:9B:C4:7B:B6:BD:06:ED:87:C5:61:0E:62:9F:67:67:83:B5
Algorithm: RSA (2048 bits)
Created: 2005/12/13 07:20:34
Expires: NEVER
UserID: Sample SecureBlackbox PGP key<info@eldos.com>
Signature
Type: Certification signature
Created: 2005/12/13 07:20:34


I've marked out the Key ID values that should be passed to the Key Filter property of the adapter or pipeline.

Cheers,

Ken
#33095
Posted: 04/21/2015 11:33:32
by Bruce Randolph (Standard support level)
Joined: 03/30/2015
Posts: 5

Ken,

Thank you for your response, that was exactly what I was looking for.

Reply

Statistics

Topic viewed 2836 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!