McAfee MEJCAE-AM-DA Product Guide - Page 46
Working with Digital Signatures, Signing information, Producing a clear-signed message
View all McAfee MEJCAE-AM-DA manuals
Add to My Manuals
Save this manual to your list of manuals |
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