Endpoint Encryption

 View Only
  • 1.  Run PGP from machines that do not have PGP installed

    Posted May 30, 2014 11:05 AM

    I have an exe that I want to be able to run from a number of machines that do not have PGP Command Line installed. Currently when I try and run the exe it returns the error 2713:No License has been entered. This is correct as I ran another exe from same machine using --version --verbose. I am using PGP Command Line 10.3.2 on a MS2008-R2 server. The exe was created in VS2010. I am not a programmer so any sniggers at the code below are taken on the chin. Is there a way that I can make this work. Any help or suggestions much apprecaited.

    public

    Form1()

    {

    InitializeComponent();

    }

    private void button1_Click(object sender, EventArgs e)

    {

    folderBrowserDialog1.SelectedPath =

    @"C:\_jo";

    folderBrowserDialog1.Description =

    "Please choose a location";

    folderBrowserDialog1.ShowDialog(); 

    Process startProcess = new Process();

    ProcessStartInfo startPGP = new ProcessStartInfo(@"\\ukstaxbt\c$\Program Files\PGP Corporation\PGP Command Line\pgp.exe");

    startPGP.RedirectStandardOutput =

    true;

    startPGP.UseShellExecute =

    false;

    startProcess.StartInfo = startPGP;

    startPGP.WindowStyle =

    ProcessWindowStyle.Normal;

    // string pgpArgs = @"pgp –-public-keyring C:\Temp\aa_a1_a3.pkr –e –r C:\_jo\ar123456.a1 –output C:\_jo\ar123456.pgp";

    string pgpArgs = @"--home-dir <C:\pgptest> --encrypt jh.txt --recipient aa_a1_a3.pkr --status-file status.log";// > status.log";

    startPGP.Arguments = pgpArgs; 

    startProcess.Start();

    // startProcess.WaitForExit();

    string output = startProcess.StandardOutput.ReadToEnd();

    File.WriteAllText("VSstatus.log", output);

    }

    }

    }



  • 2.  RE: Run PGP from machines that do not have PGP installed

    Broadcom Employee
    Posted Jun 03, 2014 08:27 AM

    Hi Jefharri,

    The product must be run in the machine where it is installed.
    At the most, I guess you can attempt to force the execution (where it is installed) from a remote machine. Though, the resource usage will be still in the machine where it is installed..
    I don't know how to achieve this in VS, but a tool like PsExec should help you.

    HTH,
    dcats



  • 3.  RE: Run PGP from machines that do not have PGP installed

    Broadcom Employee
    Posted Jun 03, 2014 11:22 AM

    Hi Jefharri,

    As dcats said I don't see anyway to run pgp command line without having a pgp command line installed but if you think about to use a PsExec tool I can give you an example of usage on pgpwde.exe for example:

    You can test and download it from below link:

    http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

    Usage: psexec [\\computer[,computer2[,...] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-<priority>][-a n,n,... ] cmd [arguments]

    As an example I will show you how to use on pgpwde.exe

    C:\Documents and Settings\Administrator\Desktop\PSTools>psexec \\192.168.2.51 -u administrator -p xxxxx -w "c:\Program files\PGP Corporation\PGP Desktop" "c:\program files\pgp corporation\pgp desktop\pgpwde.exe" --version

    Output:

    PsExec v1.98 - Execute processes remotely
    Copyright (C) 2001-2010 Mark Russinovich
    Sysinternals - www.sysinternals.com


    PGP WDE, Version 10.2.0 (Build 2317)
    Copyright (C) 2011 Symantec Corporation
    Request sent to Version was successful

    or

    Example for Windows 7 with disk encryption:

    C:\Users\Administrator\Desktop\pstools>psexec \\192.168.3.51 -u pgp2.lab\administrator -p xxxxxx -w "C:\Program Files (x86)\PGP Corporation\PGP Desktop" "C:\Program Files (x86)\PGP Corporation\PGP Desktop\pgpwde.exe" --secure --disk 0 -u administrator --passphrase "xxxxx"

    PsExec v2.0 - Execute processes remotely
    Copyright (C) 2001-2013 Mark Russinovich
    Sysinternals - www.sysinternals.com

    Starting C:\Program Files (x86)\PGP Corporation\PGP Desktop\pgpwde.exe on 192.168.3.5
    Request sent to Secure disk was successful
    C:\Program Files (x86)\PGP Corporation\PGP Desktop\pgpwde.exe exited on 192.168.3.52 with error code 0.
    C:\Users\Administrator\Desktop\pstools>

    So modyfing your script to adpot psexec tool which runs/invoke pgp.exe (command line) from MS2008-R2 server with PGP Command line to remote machine ( in my example \\192.168.3.51 ) can be one of the workaround.

    HTH