Endpoint Encryption

 View Only
  • 1.  PGP_HOME_DIR PGP home directory

    Posted Jun 13, 2013 04:45 PM

    I did specify the PGP_HOME_DIR environment variable... but still when i create keyrings they are created in $HOME/.pgp

    Has anyone faced this or know the cause, please let me know.



  • 2.  RE: PGP_HOME_DIR PGP home directory

    Posted Jun 13, 2013 11:29 PM

    I can't reproduce this problem.  Can you provide some more details?

    - What version of PGP Command Line are you running?

    - On what platform?

    - How are you setting the environment variable?

    - If you run "pgp --version --verbose" what is listed as the Home Directory in the "File information" section?

    Thanks.

     



  • 3.  RE: PGP_HOME_DIR PGP home directory

    Posted Jun 14, 2013 01:29 AM

    -Currently on PGP Command Line 10.3 build 214

    -Linux

    -Added the environment variable in my etc/profile

    PGP_HOME_DIR=/PGP/directory/

    -"pgp --version --verbose" showing the right path as

     Home Directory:"/PGP/directory/"

     Personal Directory: "/PGP/directory/"

     

    Basically the problem is when I use "pgp --create-keyrings" it is creating them in $HOME/.pgp

     

    Thanks for your help.



  • 4.  RE: PGP_HOME_DIR PGP home directory

    Posted Jun 14, 2013 02:32 AM

    I believe the issue is:  The preference file being used still specifis the "default" keyring location of <path to your $HOME directory>/.pgp.

    One solution is to edit this file and change the location of the public and private keyring files.  Alternately, you can use the "--public-keyring" and "--private-keyring" options to PGP Command Line to spcify specific location for these files.

    Regards,

     



  • 5.  RE: PGP_HOME_DIR PGP home directory

    Posted Jun 14, 2013 12:37 PM

    Hi David

    Strangely, now when i run "pgp --version --verbose" it is showing $HOME/.pgp as the global directory. I'm not sure what changed it back. Can you please let me know how to setup PGP_HOME_DIR.

    Really appreciate your help.

     

    Thanks



  • 6.  RE: PGP_HOME_DIR PGP home directory

    Posted Jun 14, 2013 01:46 PM

    For some reason (and this would not be related to PGP Command Line but to your environment) your home directory environment variable is not being set and "exported".  (My bash profile is in ~/.profile and I have "export VAR" for any variable set.

    You can also specify the home directory on the command line with the "--homedir" option.