we-coffee logo
 
Skip Navigation LinksHome | Bonnie.NET | Demos | Digital Signatures of Files Demo

PKCS#7 digital signature of files and streams from ASP.NET web pages

Attention: Your browser does not support Cassandra Client Framework (available only on Internex Explorer) and so the demo cannot be execute. To try Bonnie.NET Web Edition functionalities use Internet Explorer instead.

This web page shows how to use Bonnie.NET Web Edition's FileSignerButton and StreamSignerButton to perform digital signatures of files and streams from a web page.

You can select, from your client, a file to sign and sign it by using a digital certificate that resides on your machine, or, you can sign with your own certificate the demo.pdf file that resides on the server.

Multiple digital signatures are supported too. If you have not an X.509 digital certificate, you can generated it with X.509 Builder web application.

The digital signature performed will be encoded using the PKCS#7 standard, and a signed-data message will be created. It will contains:

1. the file and, optionally, the stream names.
2. the digital signature(s).
3. the X.509 digital certificate(s) used for the signature.
4. the date and time of the signature(s) in UTC format.
5. optionally, a comment for each signature.

To extract the information stored on the PKCS#7 signed-data message, SignerBrowsers objects implementend in Bonnie.NET Web Edition can be used. Note that, being the PKCS#7 a standard, SignerBrowsers can be used to parse and verify every signed-data message that uses this standard, whether it was generated by Bonnie.NET Web Edition or not.

FileSignerButton and StreamSignerButton use the Cassandra Client Framework plug-in. If Cassandra Client Framework is not installed on your computer, a built-in functionality of SignerButtons will guide you to the installation process. This relieves developers from having to manually deploy it to end users.

Try Bonnie.NET functionalities by following the next steps:

1. Sign a File that Resides on Your Machine

In this demo, FileSignerButton is rendered as LinkButton. It use its built-in Ajax mode to work asyncronously.

Select a file on your desktop by pressing the sign button and sign it with a X.509 digital certificate. Eventually insert a comment on the box below. The comment will be stored inside the signed message.

Signature's Comment
Sign

After the signature, the following boxes will contains the signed-data message generated and data inside it.

Signed-Data Message
Signed-Data Message's Content

2. Sign a Demo File that Resides on the Server

In this demo, StreamSignerButton is rendered as normal Button. It use its built-in Ajax mode to work asyncronously.

Press sign to sign with a X.509 digital certificate the demo.pdf file that resides on the server. Eventually insert a comment on the box below. The comment will be stored inside the signed message.

Signature's Comment

After the signature, the following boxes will contains the signed-data message generated and data inside it.

Signed-Data Message
Signed-Data Message's Content

For more details about FileSignerButton and StreamSignerButton functionalities and usage, download Bonnie.NET Web Edition and try the examples contained on the setup.

 
up up