McAfee eBusiness Server Command Options
If you are transitioning from the McAfee eBusiness Server (EBS), you can use Smartcrypt command line Enterprise Edition in OpenPGP Mode to run many of your existing EBS scripts with minimal editing. The commands include decrypt, encrypt, and sign.
You can do this if you're using the legacy PGP.exe application as well, See "Using Legacy PGP Mode" later in this appendix.
Using OpenPGP Mode
To enable OpenPGP Mode:
- Install Smartcrypt
- Copy or Link pkzipc.exe to the program name ebs.exe.
To copy and rename pkzipc.exe to ebs.exe:
copy pkzipc.exe <path/>ebs.exe
To use a symbolic link for pkzipc.exe:
mklink <path/>ebs.exe <path/>pkzipc.exe
- If you have the McAfee eBusiness Server in your PATH, either remove the PATH statement altogether, or replace the pointer to the McAfee ebs.exe program with the PKWARE program defined in step 2.
- Make sure any running scripts have the PATH set to use the ebs.exe program from step 2.
Name/Description | Shortcut | Value(s) | Example usage | Used with |
---|---|---|---|---|
armor | -a | No sub-options. | ebs --encrypt --armor save.pgp | encrypt, sign |
authenticate | No sub-options. | ebs --decrypt --authenticate signed.pgp | decrypt | |
Conventional | -c | No sub-options. | ebs --encrypt --conventional save.pgp | encrypt |
conventional-passphrase | <passphrase> | ebs --encrypt --conventional --conventional-passphrase <passphrase> | encrypt | |
decrypt | -d | No sub-options. | ebs -decrypt [passphrase <passphrase>] [-preserve-name] save.pgp | standalone |
dry-run | -n | No sub-options. | ebs --encrypt --dry-run save.zip | encrypt |
encrypt | -e | No sub-options. | ebs -encrypt --conventional [-conventional-passphrase <passphrase>] save.pgp *.doc | standalone |
help | -h | <command or option> - Any command or option for which help is desired. | ebs --help | standalone |
output | -o | <filename> | ebs --decrypt --output save.pgp save.zip | decrypt, encrypt , sign |
overwrite | -ow | No sub-options. | ebs --decrypt --overwrite save.zip | encrypt, decrypt |
passphrase | -z | <passphrase> - The passphrase. | ebs --encrypt --passphrase beowulf9 save.zip | encrypt, decrypt |
preserve-name | No sub-options. | ebs --decrypt -preserve-name sample.txt.pgp | decrypt | |
sign | -s | No sub-options. | ebs -encrypt -sign --sign-with "John Smith <johns@example.com>" save.zip | encrypt, standalone |
signed-by | <email address> - Email address of the person associated with the OpenPGP key pair. | ebs -decrypt -signed-by "john.public@nowhere.com" save.zip | decrypt | |
sign-with | <email address> - Email address of the person associated with the OpenPGP key pair. | ebs --encrypt --sign-with "john.public@nowhere.com" save.zip *.doc | encrypt | |
text | -t | Default = UNIX | ebs --decrypt -text save.zip | decrypt, encrypt |
user | -u | <email address> - Email address of the person associated with the OpenPGP key pair. | ebs --encrypt --user "John Smith" save.zip *.doc | encrypt |
version | No sub-options. | The command line: | standalone | |
wipe | -w | No sub-options. | ebs -encrypt -wipe myfiles.zip * | decrypt, encrypt |
Using Legacy PGP Mode
PKWARE offers support to users of the McAfee Legacy PGP application. This application supports the limited command set of PGP v2.63 described in the accompanying table. Other key differences between OpenPGP mode and Legacy PGP include:
- PGP mode commands only use the single-letter Command Switch, rather than the full command name.
- You can combine multiple commands with one switch. For example, to decrypt a PGP file and preserve the encrypted file's name, type:
pgp -dp sample.txt.pgp
- Use +force to accept all requests from the program.
To enable Legacy PGP Mode:
- Install Smartcrypt
- Copy or Link pkzipc.exe to the program name pgp.exe.
To copy and rename pkzipc.exe to pgp.exe:
copy pkzipc.exe <path/>pgp.exe
To use a symbolic link for pkzipc.exe:
mklink <path/>pgp.exe <path/>pkzipc.exe
- If you have the McAfee eBusiness Server in your PATH, either remove the PATH statement altogether, or replace the pointer to the McAfee pgp.exe program with the PKWARE program defined in step 2.
- Make sure any running scripts have the PATH set to use the pgp.exe program from step 2.
Name/Description | Command Switch | Value(s) | Example usage | Used with |
---|---|---|---|---|
armor | -a | No sub-options. | pgp –ea save.txt <userID> <userID> | encrypt, sign |
cypher | -c | No sub-options. | pgp –c save.txt [–z <passphrase>] | encrypt |
decrypt | -d | No sub-options. | pgp –d save.txt.pgp [–z <passphrase>] | standalone |
encrypt | -e | No sub-options. | pgp -e save.pgp <userID> <userID> | standalone |
+force | No sub-options. | pgp -e +force save.pgp <userID> <userID> | Encrypt, decrypt, sign | |
help | -h | No sub-options. | pgp -h | standalone |
outputfile | -o | <filename> | pgp –d save.txt.pgp –o new.txt | decrypt, encrypt , sign |
passphrase | -z | <passphrase> - The passphrase. | pgp -e save.txt -z beowulf9 | encrypt, decrypt |
preserve-name | -p | No sub-options. | pgp -dp sample.txt.pgp | decrypt |
sign | -s | No sub-options. | pgp –es save.txt –u <sign id> [<userid>] | encrypt, standalone |
text | -t | pgp -dt save.zip | decrypt, encrypt | |
user | -u | UserID - This value can contain a name, email address and comment; such as: Tom <tom@example.com>. | pgp –es save.txt –u <sign id> [<userid>] *.doc | encrypt |
wipe | -w | No sub-options. | pgp -ew myfiles.zip * | decrypt, encrypt |