McAfee MEJCAE-AM-DA Product Guide - Page 18
Entering configuration parameters on the command line, Specifying keys using the user ID,
View all McAfee MEJCAE-AM-DA manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 18 highlights
Getting Started E-Business Server command syntax Once this is set, you can enter -kg on the command line instead of entering --key-gen when you want to generate a new key pair. For detailed instructions on how to create aliases, see ALIAS on page 88. Entering configuration parameters on the command line Note that any of the E-Business Server configuration parameters described in Using the Configuration File on page 86 can also be entered as long options on the command line. If you are working in non-legacy mode, then you can set options on the command line by using the following syntax: ebs -- For example, if the ARMOR parameter is set to on in the E-Business Server configuration file, you can override this setting by using the --armor option on the command line: ebs --encrypt --armor off message.txt --user smith If you are working in legacy mode, then you must precede the parameter setting with a plus (+) character. For example, if the ENCRYPT-TO-SELF parameter is turned off in the configuration file, but you want to use it in a single legacy operation, then enter the following on the command line: ebs -e +ENCRYPT-TO-SELF=on message.txt smith For the location of the pgp.cfg file, please refer to Setting the location of E-Business Server files on page 12. Specifying keys using the user ID The user ID is part of every key. When performing tasks with E-Business Server, you typically identify the key you want to use by specifying the key's user ID or a fragment of the user ID. When specifying the user ID, keep the following in mind: • User IDs can be up to a maximum of 149 characters. • Be as specific as you can. If you have three keys on your keyring whose user IDs contain "John," (Dr. John Banner, John Huang, and John Schwartz) then specifying "John" as the user ID results in a list of all matching keys and an error message. • To specify multiple word user IDs, enclose the text in quotes. For example: "Sophie Luu" • E-Business Server is not case-sensitive. "John" and "john" are identical to E-Business Server. • Specifying a user ID that begins with a dash results in an error message. Dashes are used to introduce commands, and therefore cannot be used at the beginning of a user ID. • When performing manual tasks with E-Business Server, user IDs can be very convenient; however, for automated tasks, it is recommended that you always specify the key ID. See Specifying keys using the key ID below. Specifying keys using the key ID In most cases, you enter a user ID or part of a user ID to select a key. However, you can also use the hexadecimal key ID to select a key. To do so, enter the key ID, with a prefix of "0x", instead of the user ID: ebs --key-list 0x67F796C2 This command instructs E-Business Server to display the key with the ID 0x67F796C2. This feature is particularly useful if you have two different keys from the same person, with the same user ID. You can pick the correct key by specifying the specific key ID. Most command syntax in this guide specifies . Unless otherwise specified, and can be used interchangeably. E-Business Server™ 8.6 Product Guide 16