<% '****************************************************************************** ' ' THIS CODE AND INformATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, ' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED ' WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. ' ' Copyright (C) 1999- 2002. Microsoft Corporation. All rights reserved. ' '****************************************************************************** ' ' SignedData.htm ' ' This is a JScript sample that illustrates how to use features in ' CAPICOM to sign arbitrary data from the web. ' ' Note: For simplicity, this script does not handle all exceptions. ' '****************************************************************************** %>

Welcome to the CAPICOM SignedData Sample

This sample shows you how to utilize several CAPICOM features, including:

  • CAPICOM.Store
  • CAPICOM.Certificates
  • CAPICOM.Certificate
  • CAPICOM.SignedData

One of the most exciting things CAPICOM can do for you is sign arbitrary data. In this application we let the user choose which certificate/key pair to sign with, then when they select "Sign" we generate a attached PKCS7 digital signature.

This sample was written in JavaScript and its source can be found here.

Digital ID:
Message: