Endpoint Encryption

 View Only
  • 1.  PGP Command Line script

    Posted Sep 13, 2011 04:32 PM

    Hello all. I am new here to PGP Command Line. Is there a way to have PGP Command line installed on one server, but during the encryption process specify the home directory of each file? I know you can change the home directory as well as output, but when I attempted this, it gave me a license not installed error.  Here is what I am trying to accomplish:

    1. We have 10 remote offices all dropping a specific file for us to encrypt.

    2. I am trying to script this from HQ to go to each directory, pickup the file and encrypt

    3. I am trying to avoid having to install PGP Command Line at each site.

    Any info greatly appreciated.  Thanks



  • 2.  RE: PGP Command Line script
    Best Answer

    Posted Sep 13, 2011 05:35 PM

    The "home directory" is where PGP Command Line expects to find its preferences (where the license information is stored) and keyring files.  It doesn't have anything to do with where it finds its input files.  You can also specify a directory where the output file can go.

    E.g.:

    pgp -er [recipient] $current-input-directory/* --output $output-directory

    and change the value of $current-input-directory in your script, for each location.

    or

    cd $current-input-directory

    pgp -er [recipient] [file name or *] --output $output-directory

    Make sure that $output-directory is an absolute path (e.g. "/data/pgp/encrypted").  It can certainly be the same as your input directory.  If the file always has the same name, and you want to put the outputs in the same place, you will also need to change "--output" to specify something unique.

    Regards,



  • 3.  RE: PGP Command Line script

    Posted Sep 14, 2011 01:58 PM

    Thanks that worked.