McAfee MEJCAE-AM-DA Product Guide - Page 18

Entering configuration parameters on the command line, Specifying keys using the user ID,

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

  • 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
16
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 --<option> <value>
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
<userID>
. Unless otherwise specified,
<userID>
and
<keyID>
can
be used interchangeably.