McAfee MEJCAE-AM-DA Product Guide - Page 47

Signing with a specific private key, Signing and encrypting

Page 47 highlights

Working with Digital Signatures Signing information Note that the recipient must still use E-Business Server to verify the signature. For more information on verifying signatures, see Verifying a digital signature on page 46. For more information on using the CLEARSIG parameter, see CLEARSIG on page 92. Signing with a specific private key If you have more than one private key on your private keyring, E-Business Server automatically uses the default key (specified using the DEFAULT-KEY parameter in ebs.cfg) to sign your messages. To sign using a private key that is not your default private key, you must specify a different key using the --sign-with modifier. ebs --sign --sign-with You must supply the passphrase for the private key. Signing and encrypting To sign a plaintext file with your secret key and encrypt it with the recipient's public key in a single operation, you combine the --encrypt option with the --sign option. You can optionally specify which private key to use to sign the file. ebs --encrypt --user --text --sign [--sign-with ] For example, if Cee Wong wants to encrypt secretfile.txt to Sean Adams and sign it with her private key, she would enter the following: ebs --encrypt secretfile.txt --user "Sean Adams" --text --sign [--sign-with "Cee Wong"] The encrypted and signed file can then be sent through email. The following is an example of an encrypted and signed message: -----BEGIN EBS MESSAGE----Version: EBS 8.x aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0tSE1RyC9 LLVIoAcrnJFZVKqTkp+txjQzVAAkQKfowHrZLBnZmWwLJntk/hadk01T+xqQSahWwowHrZLBnZmWwLJntk/hadk01T+xqQSahWwz zY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0 tSE1RyC9LLVIoAcrnJFZVKqTkp+txjQzVAAkQKfowHrZLBnZmWwLJntk/hadk01T+xqQSahWw+xqQSahWwowHrZLBnZmWwLJntk/ hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszU zOyi/PU0jLr1DIKs0tSE1RyC9LLVI== =kggl -----END EBS MESSAGE----- Creating a detached signature In most cases, signature certificates are physically attached to the text they sign. This makes it convenient to verify signatures. You can, however, create a separate, detached signature, and then send both files (the text file and the signature certificate file) to the recipient. This feature is useful when more than one party must sign a document such as a legal contract, without nesting signatures. Each person's signature is independent. 45 E-Business Server™ 8.6 Product Guide

  • 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

45
E-Business Server
8.6
Product Guide
Working with Digital Signatures
Signing information
Note that the recipient must still use E-Business Server to verify the signature. For more information on
verifying signatures, see
Verifying a digital signature
on page 46
. For more information on using the
CLEARSIG
parameter, see
CLEARSIG
on page 92
.
Signing with a specific private key
If you have more than one private key on your private keyring, E-Business Server automatically uses the
default key (specified using the
DEFAULT-KEY
parameter in
ebs.cfg
) to sign your messages. To sign using a
private key that is not your default private key, you must specify a different key using the
--sign-with
modifier.
ebs --sign <textfile> --sign-with <userID>
You must supply the passphrase for the private key.
Signing and encrypting
To sign a plaintext file with your secret key and encrypt it with the recipient’s public key in a single operation,
you combine the
--encrypt
option with the
--sign
option. You can optionally specify which private key to use
to sign the file.
ebs --encrypt <plaintext filename> --user <recipient’s_userID> --sign [--sign-with <your_userID>]
Signing and encrypting a plaintext ASCII text file
Note:
Do not use
--text
with binary data, such as a spreadsheet or word processing file, because the binary file format
will be altered, making the file unusable.
To sign a plaintext ASCII text file with your secret key, producing a signed plaintext message suitable for
distribution through channels such as email, use the
--text
modifier. To encrypt and sign a plaintext ASCII
text file, producing a message suitable for sending through email, use the following syntax:
ebs --encrypt <plaintext ASCII text filename> --user <recipient’s_userID> --text --sign [--sign-with
<your_userID>]
For example, if Cee Wong wants to encrypt
secretfile.txt
to Sean Adams and sign it with her private key,
she would enter the following:
ebs --encrypt secretfile.txt --user “Sean Adams” --text --sign [--sign-with “Cee Wong”]
The encrypted and signed file can then be sent through email. The following is an example of an
encrypted and signed message:
-----BEGIN EBS MESSAGE-----
Version: EBS 8.x
aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0tSE1RyC9
LLVIoAcrnJFZVKqTkp+txjQzVAAkQKfowHrZLBnZmWwLJntk/hadk01T+xqQSahWwowHrZLBnZmWwLJntk/hadk01T+xqQSahWwz
zY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszUzOyi/PU0jLr1DIKs0
tSE1RyC9LLVIoAcrnJFZVKqTkp+txjQzVAAkQKfowHrZLBnZmWwLJntk/hadk01T+xqQSahWw+xqQSahWwowHrZLBnZmWwLJntk/
hadk01T+xqQSahWwzzY67c+23aMIvPrqNLedIezbfJDPNr2H8dcjW5FPnMeKXn4+063rt2JpqvZZRLYilJLS6RYGBgCMlIVSgszU
zOyi/PU0jLr1DIKs0tSE1RyC9LLVI==
=kggl
-----END EBS MESSAGE-----
Creating a detached signature
In most cases, signature certificates are physically attached to the text they sign. This makes it convenient
to verify signatures. You can, however, create a separate, detached signature, and then send both files (the
text file and the signature certificate file) to the recipient. This feature is useful when more than one party
must sign a document such as a legal contract, without nesting signatures. Each person’s signature is
independent.