McAfee MEJCAE-AM-DA Product Guide - Page 46

Working with Digital Signatures, Signing information, Producing a clear-signed message

Page 46 highlights

6 Working with Digital Signatures For an overview of digital signatures, validation, trust, and the other concepts in this chapter, as well as a description of how E-Business Server performs such tasks, see An Introduction to Cryptography. Signing information To sign a plaintext file using your default private key, use the --sign option. If you do not specify another key (using the --sign-with modifier), E-Business Server uses your default key. (Your default key is specified using the DEFAULT-KEY parameter in the E-Business Server configuration file. For more information, see DEFAULT-KEY on page 93.) ebs --sign You must supply the passphrase for the private key. Unencrypted signed messages have a signature certificate prepended in binary form. The signed message is compressed, rendering the message unreadable to human eyes, even though the message is not encrypted. The following is an example of an unencrypted signed message: -----BEGIN EBS MESSAGE----Version: EBS 8.x owHrZLBnZmWwLJntk/hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJ LS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0tSE1RyC9LLVIoAcrnJFZVKqTkp+txjQzVAAkQKf -----END EBS MESSAGE----- Producing a clear-signed message To produce a clear-signed message, one that can be read with human eyes, and without the aid of E-Business Server, the CLEARSIG parameter must be set to on (the default) in the E-Business Server configuration file, and it must be used in conjunction with the ARMOR and TEXTMODE parameters. Set ARMOR=ON (or use the --armor modifier), and set TEXTMODE=ON (or use the --text modifier). For example, you would enter the following on the command line (assuming that CLEARSIG=off in the configuration file): ebs --sign --clearsig The following is an example of a clear-signed message: -----BEGIN EBS SIGNED MESSAGE----Hash: SHA1 The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. -----BEGIN EBS SIGNATURE----Version: EBS 8.x owHrZLBnZmWwLJntk/hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnM =vZZRL -----END EBS SIGNATURE----- E-Business Server™ 8.6 Product Guide 44

  • 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
44
6
Working with Digital Signatures
For an overview of digital signatures, validation, trust, and the other concepts in this chapter, as well as a
description of how E-Business Server performs such tasks, see
An Introduction to Cryptography.
Signing information
To sign a plaintext file using your default private key, use the
--sign
option. If you do not specify another
key (using the
--sign-with
modifier), E-Business Server uses your default key. (Your default key is specified
using the
DEFAULT-KEY
parameter in the E-Business Server configuration file. For more information, see
DEFAULT-KEY
on page 93
.)
ebs --sign <plaintext_filename>
You must supply the passphrase for the private key.
Unencrypted signed messages have a signature certificate prepended in binary form. The signed message
is compressed, rendering the message unreadable to human eyes, even though the message is not
encrypted. The following is an example of an unencrypted signed message:
-----BEGIN EBS MESSAGE-----
Version: EBS 8.x
owHrZLBnZmWwLJntk/hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJ
LS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0tSE1RyC9LLVIoAcrnJFZVKqTkp+txjQzVAAkQKf
-----END EBS MESSAGE-----
Producing a clear-signed message
To produce a clear-signed message, one that can be read with human eyes, and without the aid of E-Business
Server, the
CLEARSIG
parameter must be set to
on
(the default) in the E-Business Server configuration file,
and it must be used in conjunction with the
ARMOR
and
TEXTMODE
parameters. Set
ARMOR=ON
(or use the
--armor
modifier), and set
TEXTMODE=ON
(or use the
--text
modifier).
For example, you would enter the following on the command line (assuming that
CLEARSIG=off
in the
configuration file):
ebs --sign <plaintext_filename> --clearsig
The following is an example of a clear-signed message:
-----BEGIN EBS SIGNED MESSAGE-----
Hash: SHA1
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
-----BEGIN EBS SIGNATURE-----
Version: EBS 8.x
owHrZLBnZmWwLJntk/hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnM
=vZZRL
-----END EBS SIGNATURE-----