E-Business Server:How to determine what Symmetric Cipher is being used by a Public Key

From SDS
Jump to navigation Jump to search



How to determine what Symmetric Cipher is being used by a Public Key

Technical Articles ID: SDSKB13


Environment
E-Business Server 8.x and 7.x


Problem
Determining what Symmetric Cipher is being used by a Public Key.


Solution

Using the long command format, you can determine what cipher is being used by a public key using the following command:

pgp --key-detail "USER_ID"

(where "USER_ID" is the User ID for the public key).

NOTE:You cannot view the key detail in Legacy Mode.

This command will return results similar to the following (notice that the indicated cipher is CAST):

Primary User ID:"USER_ID"

Key ID: 0x15D18802 (0x0C56EB9815D18802)
Type: DH/DSS key pairSize: 4096/1024
Validity: Valid
Trust: Implicit
Created: 2001-07-25
Expires: Never
Cipher: CAST
Photo: Not present
Token: Not on token
Fingerprint:
6241 FA25 1F39 D411 5876 C941 0C56 EB98 15D1 8802 SubKeys:
Key ID Valid From Expires Size Status
0xDF78D819 2001-07-25 Never 4096
ADKs: None Revokers: None

NOTE: Key-detail will only show the first (most preferred) algorithm. To see all the algorithms, export the key using ascii armor, then copy and paste into pgpdump. Pgpdump is available free at http://www.pgpdump.net/. Pgpdump is not maintained by SDS, and SDS is not responsible for any errors, nor does SDS guarantee that the site will always be there.

Related Information How to set the Cipher that will be used for key generation and conventional encryption processes