McAfee MEJCAE-AM-DA Product Guide - Page 90

ALIAS, Syntax, Notes

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188

E-Business Server
8.6
Product Guide
88
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> --<long-option>
ALIAS --<alias> --<long-option>
ALIAS -<alias> “--<long-option> <value>”
ALIAS -<alias> “--<long-option> --<argument> %1 --<argument> %2 --<argument> %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 -<alias> --<long-option>
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 --<alias> “--<long-option> <value>”
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 --<alias> “--<long-option> <argument> %1 --<argument> %2 --<argument> %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”