McAfee MEJCAE-AM-DA Product Guide - Page 90
ALIAS, Syntax, Notes
View all McAfee MEJCAE-AM-DA manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 90 highlights
Using the Configuration File Learning about the configuration file Note: We recommend you always specify the ADK-KEY in your configuration file using the key ID to prevent any potential security holes-if you were to specify the ADK-KEY using the key's user ID, an interloper might create another key with the same user ID and introduce a means for decrypting secret data. ALIAS Note: Aliases are not supported in Legacy mode. The ALIAS parameter allows you to create aliases (shortcuts) for command-line options and their arguments. Aliases can only be defined in the configuration file and must start with at least one dash. If an alias contains spaces, then you must enclose it in quotes. Syntax ALIAS - -- ALIAS -- -- ALIAS - "-- " ALIAS - "-- -- %1 -- %2 -- %3..." Notes Creating aliases for single command-line options To create an alias for a single E-Business Server command-line option, use the following syntax: ALIAS - -- For example: ALIAS -e --encrypt Once this is set, you can enter -e on the command line instead of entering --encrypt when you want to encrypt data. If you want to give the alias a long name, then you can put two dashes in front of it. For example, if you wanted to set --search as a shortcut for --keyserver-search, then you would enter the following in the configuration file: ALIAS --search --keyserver-search Creating aliases for command-line options with values To create an alias for a E-Business Server command-line option and its value, you must enclose the option and value in quotes because there is a space between them: ALIAS -- "-- " For example, if you wanted to set --bigkey as a shortcut for --key-size 4096, then you would enter the following in the configuration file: ALIAS --bigkey "--key-size 4096" Once this is set, you can enter the following on the command line to create a new key with a key size of 4096 bits: ebs --key-gen --bigkey Creating aliases for command-line options with multiple arguments To create an alias for a E-Business Server option and multiple arguments, use the following syntax: ALIAS -- "-- %1 -- %2 -- %3..." You can list up to 9 arguments. For example, you could create an alias to represent creating a new key with a specific key size, key type, and user ID. To do so, you would enter the following in the configuration file: ALIAS --newkey "--key-gen --key-size %1 --key-type %2 --userid %3" When you want to create a new key, then you would enter the alias followed by the values for arguments 1, 2 and 3 on the command line. For example: ebs --newkey 1024 RSA "jackson jones" E-Business Server™ 8.6 Product Guide 88