McAfee MEJCAE-AM-DA Product Guide - Page 70
Advanced Topics, Using scripts with E-Business Server, Using E-Business Server without interaction
View all McAfee MEJCAE-AM-DA manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
9 Advanced Topics This chapter describes several advanced E-Business Server topics and commands. To: Use scripts with E-Business Server Using E-Business Server without interaction Encrypt and transmit binary data Send ASCII files to different machine environments Wipe your disk Wipe your smart card Work with passphrases Work with groups Manually start the ebssdkd Keep your keyring files open See: Using scripts with E-Business Server on page 68 Using E-Business Server without interaction on page 68 Encrypting and transmitting binary data on page 69 Working with ASCII and binary data on page 69 Wiping your disk on page 71 Wiping your smart card on page 71 Alternative ways to work with passphrases on page 72 Working with groups on page 74 Starting the ebssdkd on page 75 Keeping your keyring files open with EBScache on page 76 Using scripts with E-Business Server You can run E-Business Server in "batch" mode (for example, from a Windows ".bat" file or from a UNIX shell script). For example, if you wanted to create a script to encrypt and sign several files inside a loop, then you might include the following syntax: ebs --encrypt --sign $(FILE) --user $(USER) --passphrase $(QUOTED-PASSPHRASE) --output $(FILE)-$(USER).pgp Using E-Business Server without interaction To use E-Business Server without interaction you must include all information normally prompted for by E-Business Server using command-line switches. For example, to sign a key and not have E-Business Server prompt for additional information, simply provide all of the necessary options on the command line using the following syntax: ebs --key-sign --sign-with --passphrase --expires-after --sig-type --force Therefore, if Andy Tobbs wants to sign Willy Kampton's key with a specific signature type and expiration date, he would enter: ebs --key-sign [email protected] --sign-with "Andy Tobbs" --passphrase "2BeeRnotTobe" --expires-after 10 --sig-type local --force E-Business Server has all the information needed to perform the key signing operation, and because --force is also included, E-Business Server does not ask for any confirmations. Note: Using E-Business Server without interaction is especially useful when working with the E-Business Server API. For more information, see Using the E-Business Server API on page 78. Understanding E-Business Server exit status codes When you run E-Business Server in batch mode, E-Business Server returns an error exit status to the shell. E-Business Server™ 8.6 Product Guide 68