Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

gnupg::key(3pm) [debian man page]

GnuPG::Key(3pm) 					User Contributed Perl Documentation					   GnuPG::Key(3pm)

NAME
GnuPG::Key - GnuPG Key Object SYNOPSIS
# assumes a GnuPG::Interface object in $gnupg my @keys = $gnupg->get_public_keys( 'ftobin' ); # now GnuPG::PublicKey objects are in @keys DESCRIPTION
GnuPG::Key objects are generally not instantiated on their own, but rather used as a superclass of GnuPG::PublicKey, GnuPG::SecretKey, or GnuPG::SubKey objects. OBJECT METHODS
Initialization Methods new( %initialization_args ) This methods creates a new object. The optional arguments are initialization of data members. hash_init( %args ). short_hex_id This returns the commonly-used short, 8 character short hex id of the key. compare( $other, $deep ) Returns non-zero only when this Key is identical to the other GnuPG::Key. If $deep is present and non-zero, the key's associated signatures, revocations, and revokers will also be compared. OBJECT DATA MEMBERS
length Number of bits in the key. algo_num They algorithm number that the Key is used for. usage flags The Key Usage flags associated with this key, represented as a string of lower-case letters. Possible values include: (a) authenticate, (c) certify, (e) encrypt, and (s) sign. A key may have any combination of them in any order. In addition to these letters, the primary key has uppercase versions of the letters to denote the _usable_ capabilities of the entire key, and a potential letter 'D' to indicate a disabled key. See "key capabilities" DETAILS from the GnuPG sources for more details. hex_data The data of the key. WARNING: this seems to have never been instantiated, and should always be undef. pubkey_data A list of Math::BigInt objects that correspond to the public key material for the given key (this member is empty on secret keys). For DSA keys, the values are: prime (p), group order (q), group generator (g), y For RSA keys, the values are: modulus (n), exponent (e) For El Gamal keys, the values are: prime (p), group generator (g), y For more details, see: http://tools.ietf.org/html/rfc4880#page-42 hex_id The long hex id of the key. This is not the fingerprint nor the short hex id, which is 8 hex characters. creation_date_string expiration_date_string Formatted date of the key's creation and expiration. If the key has no expiration, expiration_date_string will return undef. creation_date expiration_date Date of the key's creation and expiration, stored as the number of seconds since midnight 1970-01-01 UTC. If the key has no expiration, expiration_date will return undef. fingerprint A GnuPG::Fingerprint object. signatures A list of GnuPG::Signature objects embodying the signatures on this key. For subkeys, the signatures are usually subkey-binding signatures. For primary keys, the signatures are statements about the key itself. revocations A list of revocations associated with this key, stored as GnuPG::Signature objects (since revocations are a type of certification as well). Note that a revocation of a primary key has a different semantic meaning than a revocation associated with a subkey. revokers A list of GnuPG::Revoker objects associated with this key, indicating other keys which are allowed to revoke certifications made by this key. SEE ALSO
GnuPG::Fingerprint, GnuPG::Signature, GnuPG::Revoker, perl v5.12.4 2010-06-07 GnuPG::Key(3pm)

Check Out this Related Man Page

keylookup(1)															      keylookup(1)

NAME
keylookup - Fetch and Import GnuPG keys from keyservers. SYNOPSIS
keylookup [options] search-string DESCRIPTION
keylookup is a wrapper around gpg --search, allowing you to search for keys on a keyserver. It presents the list of matching keys to the user and allows her to select the keys for importing into the GnuPG keyring. For the search and actual import of keys GnuPG itself is called. OPTIONS
--keyserver=keyserver Specify the keyserver to use. If no keyserver is specified, it will parse the GnuPG options file for a default keyserver to use. If no keyserver can be found, keylookup will abort. --port=port Use a port other than 11371. --frontend=frontend keylookup supports displaying the search results with 3 different frondends. Both whiptail and dialog are interactive and allow the user to select the keys to import. The third frontend plain is non-interactive and just prints the keys to STDOUT. The user must then call GnuPG him/herself. If available, /usr/bin/dialog is the default. If it is not available but /usr/bin/whiptail is installed, then this is used instead. If nothing else works, we'll fall back to plain. --importall Don't ask the user which keys to import, but instead import all keys matching the search-string. If this is given no frontend is needed. --honor-http-proxy Similar to GnuP keylookup will only honor the http_proxy environment variable if this option is given. If it is not given but your GnuPG options file includes it, then keylookup will use it. --help Print a brief help message and exit successfully. ENVIRONMENT
HOME Used to locate the default home directory. GNUPGHOME If set directory used instead of "~/.gnupg". http_proxy Only honored when the option --honor-http-proxy is set or honor-http-proxy is set in GnuPG's config file. EXAMPLES
keylookup Christian Kurz will query your default keyserver for Christian's keys and offer you to import them into your keyring with the dialog frontend (if available). keylookup --honor-http-proxy --frontend plain wk@gnupg will query the default keyserver again, now using the http_proxy if the environment variable is defined and list wk@gnupg's (Werner Koch)'s key on STDOUT. keylookup --keyserver pgp.mit.edu Peter Palfrader will now ask the keyserver pgp.mit.edu for my (Peter's) keys and display them for import in dialog. FILES
~/.gnupg/options GnuPG's options file where keylookup will take the keyserver and honor-http-proxy values from if it exists. SEE ALSO
gpg(1) BUGS
Please report bugs using the Debian bug tracking system at http://bugs.debian.org/. AUTHORS
Christian Kurz <shorty@debian.org> Peter Palfrader <peter@palfrader.org> Jun-2002 keylookup(1)
Man Page