Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

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

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

NAME
GnuPG::Signature - GnuPG Key Signature Objects SYNOPSIS
# assumes a GnuPG::Key or GnuPG::UserID or GnuPG::UserAttribute object in $signed my $signing_id = $signed->signatures->[0]->hex_id(); DESCRIPTION
GnuPG::Signature objects are generally not instantiated on their own, but rather as part of GnuPG::Key objects. They embody various aspects of a GnuPG signature on a key. OBJECT METHODS
new( %initialization_args ) This methods creates a new object. The optional arguments are initialization of data members. is_valid() Returns 1 if GnuPG was able to cryptographically verify the signature, otherwise 0. compare( $other ) Returns non-zero only when this Signature is identical to the other GnuPG::Signature. OBJECT DATA MEMBERS
validity A character indicating the cryptographic validity of the key. GnuPG uses at least the following characters: "!" means valid, "-" means not valid, "?" means unknown (e.g. if the supposed signing key is not present in the local keyring), and "%" means an error occurred (e.g. a non-supported algorithm). See the documentation for --check-sigs in gpg(1). algo_num The number of the algorithm used for the signature. hex_id The hex id of the signing key. user_id_string The first user id string on the key that made the signature. This may not be defined if the signing key is not on the local keyring. sig_class Signature class. This is the numeric value of the class of signature. A table of possible classes of signatures and their numeric types can be found at http://tools.ietf.org/html/rfc4880#section-5.2.1 is_exportable returns 0 for local-only signatures, non-zero for exportable signatures. date_string The formatted date the signature was performed on. date The date the signature was performed, represented as the number of seconds since midnight 1970-01-01 UTC. expiration_date_string The formatted date the signature will expire (signatures without expiration return undef). expiration_date The date the signature will expire, represented as the number of seconds since midnight 1970-01-01 UTC (signatures without expiration return undef) SEE ALSO
perl v5.12.4 2010-05-10 GnuPG::Signature(3pm)

Check Out this Related Man Page

GPGV(1) 							 GNU Privacy Guard							   GPGV(1)

NAME
gpgv - Verify OpenPGP signatures SYNOPSIS
gpgv [options] signed_files DESCRIPTION
gpgv is an OpenPGP signature verification tool. This program is actually a stripped-down version of gpg which is only able to check signatures. It is somewhat smaller than the fully-blown gpg and uses a different (and simpler) way to check that the public keys used to make the signature are valid. There are no configuration files and only a few options are implemented. gpgv assumes that all keys in the keyring are trustworthy. By default it uses a keyring named `trustedkeys.gpg' which is assumed to be in the home directory as defined by GnuPG or set by an option or an environment variable. An option may be used to specify another keyring or even multiple keyrings. RETURN VALUE
The program returns 0 if everything is fine, 1 if at least one signature was bad, and other error codes for fatal errors. OPTIONS
gpgv recognizes these options: --verbose -v Gives more information during processing. If used twice, the input data is listed in detail. --quiet -q Try to be as quiet as possible. --keyring file Add file to the list of keyrings. If file begins with a tilde and a slash, these are replaced by the HOME directory. If the file- name does not contain a slash, it is assumed to be in the home-directory ("~/.gnupg" if --homedir is not used). --status-fd n Write special status strings to the file descriptor n. See the file DETAILS in the documentation for a listing of them. --logger-fd n Write log output to file descriptor n and not to stderr. --ignore-time-conflict GnuPG normally checks that the timestamps associated with keys and signatures have plausible values. However, sometimes a signature seems to be older than the key due to clock problems. This option turns these checks into warnings. --homedir dir Set the name of the home directory to dir. If this option is not used, the home directory defaults to `~/.gnupg'. It is only recog- nized when given on the command line. It also overrides any home directory stated through the environment variable `GNUPGHOME' or (on W32 systems) by means of the Registry entry HKCUSoftwareGNUGnuPG:HomeDir. EXAMPLES
gpgv pgpfile gpgv sigfile [datafile] Verify the signature of the file. The second form is used for detached signatures, where sigfile is the detached signature (either ASCII-armored or binary) and datafile contains the signed data; if datafile is "-" the signed data is expected on stdin; if datafile is not given the name of the file holding the signed data is constructed by cutting off the extension (".asc", ".sig" or ".sign") from sigfile. FILES
~/.gnupg/trustedkeys.gpg The default keyring with the allowed keys. ENVIRONMENT
HOME Used to locate the default home directory. GNUPGHOME If set directory used instead of "~/.gnupg". SEE ALSO
gpg2(1) The full documentation for this tool is maintained as a Texinfo manual. If GnuPG and the info program are properly installed at your site, the command info gnupg should give you access to the complete manual including a menu structure and an index. GnuPG 1.4.11 2013-01-08 GPGV(1)
Man Page