Digital signatures play a central role in software security. This article explains what a digital signature is, and how you can check to make sure that a digital signature is trustworthy.In this article

What is a digital signature?

A digital signature is used to authenticate digital information - such as documents, e-mail messages, and macros - by using computer cryptography. Digital signatures help to establish the following assurances:

To make these assurances, the content must be digitally signed by the content creator, using a signature that satisfies the following criteria:

The Microsoft Office system programs detect these criteria for you, and alert you if there is a problem with the digital signature. For details, see the last section in this article, .

View a digital signature in a signed document

This section applies to the following Microsoft Office system programs: Excel, Word, and PowerPoint.

When you review any signed content, you should look at the attached signature details and the certificate used to create that signature to find out whether there are any potential problems.

  1. With the document open, click the Microsoft Office Button button image, and then click Prepare.
  2. Click View Signatures.

    Tip You can also click the signatures button at the bottom of your screen.

    signatures button

  3. In the Signatures pane, click the signature that you want to view, click the arrow next to the signature name, and then click Signature Details.

    signatures details

  4. In the Signature Details dialog box, click View.

Evaluating the digital signature is covered in the last section in this article, .

View a digital signature in a signed e-mail message

  1. Open the digitally signed message.
  2. Look at the Signed By status line and note the e-mail address of the person who signed the message.

    signed by status line

    Important It is not enough to check the e-mail address in the From line, because it is necessary to verify who actually signed the message, and not just who sent it. If the e-mail address in the From line does not match the e-mail address in the Signed By status line, the Signed by line is the one to use in identifying who actually sent the message.

    digital signature

  3. Check to see whether the signature is valid or invalid.
    • If the button on the Signed By status line appears similar to the following Signature button button image, the signature is valid. For more information about the status of the signature, click the button.
    • If a red underline appears under the Signed By status line and if the button appears as an exclamation mark, the signature is invalid. For more information about the status of the signature, click the button.

    signed by

  4. To see more information about why there is a problem with the digital signature, such as the certificate being invalid, click Details.

    digital signature invalid

  5. In the next security dialog box that appears, click View Details to see information about the certificate used in the digital signature.

View a digital signature for a signed macro

When you open a document that contains a and there is a problem with the signature, the macro is disabled by default and the Message Bar appears to notify you of a potentially unsafe macro. However, this does not occur if you are opening the document from a .message bar

If the macros have been signed, you can view the certificates for the files by doing the following:

  1. On the Message Bar, click Options.
  2. If the macros are signed, you see in the security dialog box a Signature area that looks similar to the following illustration.

    signature

  3. Click Show Signature Details.

How to tell if a digital signature is trustworthy

This section describes what you should look for when you evaluate the trustworthiness of a digital signature.

The digital signature is OK

A valid digital signature is identified by a message at the top of the Digital Signature Details dialog box, confirming that the digital signature is OK. You should also note the timestamp details under Countersignatures. The timestamp details indicate that the certificate authority - in this example, VeriSign - has verified and approved the digital signature.

digital signature details dialog box

The date for the time stamp - in this case, August 7, 2003 - should be within the Valid from date range in the certificate. To see the date range in the digital signature, click View Certificate.

certificate dialog box

The publisher - in this case, Microsoft Corporation - should be a trusted publisher by default on computers running the Microsoft Windows operating system. Certificates for Microsoft are located in the Trusted Root Certification Authorities store. If the publisher is not trusted by default, you must explicitly trust the publisher. Otherwise, the content signed by that publisher does not pass the security software checks.

Checking for the red X

A digital signature that presents problems shows the image with a red X.

digital signature details dialog box

The red X can appear for the following reasons:

What you should you do if there is a problem with a signature

When there is a problem with a digital signature, then depending upon your situation, you can do any of the following: