Article ID: 920627 - View products that this article applies to.
In Microsoft Word 2002 and in later versions of Word, you can digitally sign a document or code sign a macro project. This procedure guarantees that you were the last person to change the document or the macro project.
This article answers questions about digital signatures and code signing.
What is a digital certificate?Digital certificates and digital signatures help guarantee that the file that you are about to use comes from a reliable source and has not been tampered with.
A digital certificate is an ID that a file carries. To validate a signature, a certification authority validates information about the creator of the file, and then issues the digital certificate. The digital certificate contains information about the person to whom the certificate was issued, and information about the certification authority that issued it. When a digital certificate is used to sign a file, the ID is stored with the file in a verifiable form so that the ID can be displayed to a user.
What is a digital signature?Word uses digital signatures on the document contents to help make sure that the document has not been modified and saved since the document was signed. Digital signatures can also help you distinguish documents and macros that are created by a reliable source from bad and potentially damaging documents or macro code (viruses).
A digital signature includes both a public certificate and the value of the signed data as encrypted by a private key. The value is a number that a cryptographic algorithm generates for any data that you want to sign. This algorithm makes it almost impossible to change the data without changing the resulting value. Therefore, by encrypting the value instead of the data, a digital signature helps a user to verify that the data was not changed.
What occurs when I use a digital signature?You can view and edit signed Word documents when you use a digital signature. However, you cannot edit and then save a signed document without invalidating the signature. For example, you can sign a file, and other users can view the file. As long as the file remains signed, other users will know that the file came from you and was not modified.
Digitally signing a document differs from code signing a Visual Basic for Applications macro project. You can digitally sign the document for content, and you can also code sign your Visual Basic for Applications macro project in the same document.
What Word files can I sign?You can digitally sign any Word document (.doc) or Word template (.dot). However, Word 2002 and later versions of Word are the only versions of Word that recognize the digital signature.
How can I obtain a digital signature?To obtain a digital signature, you first must have a digital certificate. There are two methods to do this.
Method 1: Obtain a digital certificate from a certification authorityYou can obtain a digital certificate or a code signing ID from a commercial certification authority or from your internal security administrator or information technology (IT) professional.
A certification authority can issue you a digital certificate or code signing ID for no charge. The certification authority performs an in-depth identification check before the authority issues a digital certificate.
For more information about how to obtain a digital signature or code signing ID, visit the following Microsoft Web site:
Method 2: Create your own digital certificateYou can create your own digital certificate for personal use or for testing by using the SelfCert.exe tool that is provided in Microsoft Office. However, this certificate is not authenticated by a certification authority.
For more information about how to create your own digital certificate, click Microsoft Word Help on the Help menu, type create your own digital certificate in the Assistance pane, and then click Start searching to view the topic.
How do I add a digital signature to a document?To add a digital signature to your document in Word 2002 or in Microsoft Office Word 2003, follow these steps:
To add a digital signature in Microsoft Office Word 2007, follow these steps:
To verify that changes have not occurred in the signed document in Word 2007, follow these steps:
How do I code sign a macro project?To code sign your Visual Basic for Applications macro project in Word 2002 or in Word 2003, follow these steps:
To code sign your Visual Basic for Applications macro project in Word 2007, follow these steps:
For more information about digital signatures, click Microsoft Office Word Help on the Help menu, type about digital signatures in the Search for box in the Assistance pane, and then click Start searching to view the topic.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/820738/ )Description of digital signatures and code signing in workbooks in Excel 2003
Article ID: 920627 - Last Review: March 20, 2007 - Revision: 2.2