McAfee MEJCAE-AM-DA Product Guide - Page 126

Syntax, Modifiers, Notes, key-gen

Page 126 highlights

Using Command-Line Options Syntax ebs --key-export [--armor] [--output ] [--multi] [--with-private] [--smartcard [--pin ]] [--export-format compatible|complete] [--x509 [--issuer-dn --issuer-serial

  • 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
124
Using Command-Line Options
Syntax
ebs --key-export <userID_or_keyID> [--armor] [--output <filename>] [--multi] [--with-private]
[--smartcard [--pin <pin>]]
[--export-format compatible|complete]
[--x509 [--issuer-dn <DN> --issuer-serial <number]]
Modifiers
Notes
If E-Business Server finds several matching keys on your keyring for the specified user ID and
--multi
is
not also used, then an error message appears.
E-Business Server only prompts for the user ID and filename when running in Legacy mode. Otherwise,
a missing user ID produces a help message and an error results.
• Unless
--output
is specified, the primary user ID is used to generate an output filename. If that file
already exists, an error is generated (unless you also specified
--overwrite
).
key-gen
Use the
--key-gen
option to create a new key pair, or to create an encryption subkey for an existing key.
--armor
Specifies that keys are exported in ASCII-armored format, using .asc instead of
.pgp as the extension.
--export-format
If you specify “compatible”, then E-Business Server strips newer key features
from the keys being exported. This may be necessary if the key is to be used by
clients with E-Business Server versions prior to 6.0, which does not recognize
such attributes as X.509 certificates or photo IDs. Specify “complete” if you do
not want to strip features.
--issuer-dn
Identifies the X.509 certificate issuer for the certificate you want to export. This
is useful with --x509 when there is more than one X.509 certificate on the key.
--issuer-serial
Specifies the X.509 certificate issuer’s assigned serial number for the certificate
you want to export. When used in conjunction with the --issuer-dn option, this
uniquely identifies the certificate you want to export.
--multi
Allows all keys matching the user ID to be exported without prompting.
--output
Specifies the location where the exported keys should be saved. If the output
file specified is a directory name, then all keys are exported to that directory in
separate files identified by the primary user ID. Files are overwritten if
--overwrite
is also specified.
The use of a directory for output is not supported when exporting X.509
certificates because the user IDs can be difficult to read.
--pin
Specifies the smart card PIN number.
--smartcard
Indicates that the key-export operation takes place on the smart card.
--with-private
When specified, all key pairs exported include the private portion of the key. By
default, E-Business Server only exports the public portion of your key pair.
Note:
Smart cards cannot export their private keys.
--x509
Indicates that only the X.509 certificate associated with the key should be
extracted.
You must specify the certificate ID if the key you want to export contains more
than one X.509 certificate.
You cannot specify a directory name for the output filename when using --x509.
.crt is appended to the filename if the filename does not contain a period.
The key is exported in DER format, unless --armor is used specifying PEM
format.