This page demonstrates signing of content within a web page
using an X509 certificate in the Personal ("MY") user certificate store. Most of the
signature generation, verification and content extraction functionality is implemented
as VBScript and CAPICOM. A
signed Java applet is embedded to facilitate secure access to the local file system for file signing.
When the data is successfully signed using SignedData.Sign(), the base64-encoded pkcs7 data,
including the content, is displayed with 3 buttons to verify the signature and certificate,
display the content and the certificate(s) embedded in the pkcs7 data. This sample can be easily
extended to POST the signature data to a server: