# pdfsig(1) - man - phpman

[pdfsig(1)](https://www.chedong.com/phpMan.php/man/pdfsig/1/markdown)                              General Commands Manual                             [pdfsig(1)](https://www.chedong.com/phpMan.php/man/pdfsig/1/markdown)



## NAME
       pdfsig - Portable Document Format (PDF) digital signatures tool

## SYNOPSIS
       **pdfsig** [options] [_PDF-file_] [_Output-file_]

## DESCRIPTION
       **pdfsig**  verifies  the digital signatures in a PDF document.  It also displays the identity of
       each signer (commonName field and full distinguished name of  the  signer  certificate),  the
       time  and  date of the signature, the hash algorithm used for signing, the type of the signa‐
       ture as stated in the PDF and the signed ranges with a statement wether the total document is
       signed.  It can also sign PDF documents (options -add-signature or -sign).

       pdfsig uses the trusted certificates stored in the Network Security Services (NSS) Database.

       pdfsig    also   uses   the   Online   Certificate   Status   Protocol   (OCSP)   (refer   to
       <http://en.wikipedia.org/wiki/Online_Certificate_Status_Protocol>) to look up  the  certificate
       online and check if it has been revoked (unless -no-ocsp has been specified).

       The NSS Database is searched for in the following locations:

       •      If the -nssdir option is specified, the directory specified by this option.

       •      The NSS Certificate database in the default Firefox profile. i.e. $HOME/.mozilla/fire‐
              fox/*.default.

       •      The NSS Certificate database in /etc/pki/nssdb.

## OPTIONS
### -nssdir [prefix]directory
              Specify the database directory containing the certificate and key database files.  See
              [certutil(1)](https://www.chedong.com/phpMan.php/man/certutil/1/markdown) -d option for details of the prefix. If not specified the other search lo‐
              cations described in **DESCRIPTION** are used.

### -nss-pwd password
              Specify the password needed to access the NSS database (if any).

### -nocert
              Do not validate the certificate.

### -no-ocsp
              Do not perform online OCSP certificate revocation check (local Certificate  Revocation
              Lists (CRL) are still used).

### -aia
              tificates to build the certificate chain.

### -dump

### -add-signature
              Add a new signature to the document.

### -new-signature-field-name  name
              Specifies the field name to be used when adding a new signature. A random ID  will  be
              used by default.

### -sign  n
              Sign  the  document  in  the n-th signature field present in the document (must be un‐
              signed).

### -nick  nickname
              Use the certificate with the given nickname for signing.

### -kpw  password
              Use the given password for the signing key (this might be missing  if  the  key  isn't
              password protected).

### -digest  algorithm
              Use the given digest algorithm for signing (default: SHA256).

### -reason  reason
              Set the given reason string for the signature (default: no reason set).

### -etsi

### -list-nicks
              List available nicknames in the NSS database.

### -v

### -h -help --help

## EXAMPLES
       pdfsig signed_file.pdf
              Displays signature info for signed_file.pdf.

       pdfsig input.pdf output.pdf -add-signature -nss-pwd password -nick my-cert -reason 'for fun!'
              Creates  a  new pdf named output.pdf with the contents of input.pdf signed by the 'my-
              cert' certificate.

       pdfsig input.pdf output.pdf -sign 0 -nss-pwd password -nick my-cert -reason 'for fun!'
              Creates a new pdf named output.pdf with the contents of input.pdf signed by  the  'my-
              cert' certificate. input.pdf must have an already existing un-signed signature field.

## AUTHOR
       The  pdfsig software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright
       2005-2015 The Poppler Developers - <http://poppler.freedesktop.org>

## SEE ALSO
       [**pdfdetach**(1)](https://www.chedong.com/phpMan.php/man/pdfdetach/1/markdown),   [**pdffonts**(1)](https://www.chedong.com/phpMan.php/man/pdffonts/1/markdown),   [**pdfimages**(1)](https://www.chedong.com/phpMan.php/man/pdfimages/1/markdown),   [**pdfinfo**(1)](https://www.chedong.com/phpMan.php/man/pdfinfo/1/markdown),    [**pdftocairo**(1)](https://www.chedong.com/phpMan.php/man/pdftocairo/1/markdown),    [**pdftohtml**(1)](https://www.chedong.com/phpMan.php/man/pdftohtml/1/markdown),
       [**pdftoppm**(1)](https://www.chedong.com/phpMan.php/man/pdftoppm/1/markdown), [**pdftops**(1)](https://www.chedong.com/phpMan.php/man/pdftops/1/markdown), [**pdftotext**(1)](https://www.chedong.com/phpMan.php/man/pdftotext/1/markdown) [**pdfseparate**(1)](https://www.chedong.com/phpMan.php/man/pdfseparate/1/markdown), [**pdfunite**(1)](https://www.chedong.com/phpMan.php/man/pdfunite/1/markdown) [**certutil**(1)](https://www.chedong.com/phpMan.php/man/certutil/1/markdown)



                                           28 October 2015                                 [pdfsig(1)](https://www.chedong.com/phpMan.php/man/pdfsig/1/markdown)
