McAfee MEJCAE-AM-DA Product Guide - Page 70

Advanced Topics, Using scripts with E-Business Server, Using E-Business Server without interaction

Page 70 highlights

9 Advanced Topics This chapter describes several advanced E-Business Server topics and commands. To: Use scripts with E-Business Server Using E-Business Server without interaction Encrypt and transmit binary data Send ASCII files to different machine environments Wipe your disk Wipe your smart card Work with passphrases Work with groups Manually start the ebssdkd Keep your keyring files open See: Using scripts with E-Business Server on page 68 Using E-Business Server without interaction on page 68 Encrypting and transmitting binary data on page 69 Working with ASCII and binary data on page 69 Wiping your disk on page 71 Wiping your smart card on page 71 Alternative ways to work with passphrases on page 72 Working with groups on page 74 Starting the ebssdkd on page 75 Keeping your keyring files open with EBScache on page 76 Using scripts with E-Business Server You can run E-Business Server in "batch" mode (for example, from a Windows ".bat" file or from a UNIX shell script). For example, if you wanted to create a script to encrypt and sign several files inside a loop, then you might include the following syntax: ebs --encrypt --sign $(FILE) --user $(USER) --passphrase $(QUOTED-PASSPHRASE) --output $(FILE)-$(USER).pgp Using E-Business Server without interaction To use E-Business Server without interaction you must include all information normally prompted for by E-Business Server using command-line switches. For example, to sign a key and not have E-Business Server prompt for additional information, simply provide all of the necessary options on the command line using the following syntax: ebs --key-sign --sign-with --passphrase --expires-after --sig-type --force Therefore, if Andy Tobbs wants to sign Willy Kampton's key with a specific signature type and expiration date, he would enter: ebs --key-sign [email protected] --sign-with "Andy Tobbs" --passphrase "2BeeRnotTobe" --expires-after 10 --sig-type local --force E-Business Server has all the information needed to perform the key signing operation, and because --force is also included, E-Business Server does not ask for any confirmations. Note: Using E-Business Server without interaction is especially useful when working with the E-Business Server API. For more information, see Using the E-Business Server API on page 78. Understanding E-Business Server exit status codes When you run E-Business Server in batch mode, E-Business Server returns an error exit status to the shell. E-Business Server™ 8.6 Product Guide 68

  • 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
68
9
Advanced Topics
This chapter describes several advanced E-Business Server topics and commands.
Using scripts with E-Business Server
You can run E-Business Server in “batch” mode (for example, from a Windows “
.bat
” file or from a UNIX
shell script).
For example, if you wanted to create a script to encrypt and sign several files inside a loop, then you might
include the following syntax:
ebs --encrypt --sign $(FILE) --user $(USER) --passphrase $(QUOTED-PASSPHRASE) --output
$(FILE)-$(USER).pgp
Using E-Business Server without interaction
To use E-Business Server without interaction you must include all information normally prompted for by
E-Business Server using command-line switches.
For example, to sign a key and not have E-Business Server prompt for additional information, simply provide
all of the necessary options on the command line using the following syntax:
ebs --key-sign <keyID> --sign-with <userID> --passphrase <quoted-passphrase> --expires-after
<expiration> --sig-type <type> --force
Therefore, if Andy Tobbs wants to sign Willy Kampton’s key with a specific signature type and expiration
date, he would enter:
ebs --key-sign [email protected] --sign-with “Andy Tobbs” --passphrase “2BeeRnotTobe”
--expires-after 10 --sig-type local --force
E-Business Server has all the information needed to perform the key signing operation, and because
--force
is also included, E-Business Server does not ask for any confirmations.
Note:
Using E-Business Server without interaction is especially useful when working with the E-Business Server API. For
more information, see
Using the E-Business Server API
on page 78
.
Understanding E-Business Server exit status codes
When you run E-Business Server in batch mode, E-Business Server returns an error exit status to the shell.
To:
See:
Use scripts with E-Business Server
Using scripts with E-Business Server
on page 68
Using E-Business Server without interaction
Using E-Business Server without interaction
on page 68
Encrypt and transmit binary data
Encrypting and transmitting binary data
on page 69
Send ASCII files to different machine
environments
Working with ASCII and binary data
on page 69
Wipe your disk
Wiping your disk
on page 71
Wipe your smart card
Wiping your smart card
on page 71
Work with passphrases
Alternative ways to work with passphrases
on page 72
Work with groups
Working with groups
on page 74
Manually start the ebssdkd
Starting the ebssdkd
on page 75
Keep your keyring files open
Keeping your keyring files open with EBScache
on page 76