![]() ![]() Enter a password when prompted (don't give an empty one!!!).Follow the wizard, and when asked, choose to include private key with the extracted certificate.Choose a certificate from the list and click Export.Go to the 'Content' tab and click 'Certificates'.Open Internet Explorer and click on Tools, then Internet Options.Then, extract the PKCS#12 certificate as described below: ![]() If you don’t have one, you can install the demo certificate from here. So the first thing you have to do is to install a certificate on your browser. I will also use some function to manipulate PKCS#12 certificates the only thing you need to know here is that our digital signature will use a private key extracted from a PKCS#12 certificate. ITextSharp provides a lot of interesting features to create and manipulate PDF documents, but in this article, we will only use digital signature functions. If you don’t know what digital signatures are or how they work, you can go here or here, or simply ask Google :) ![]() You'll need Visual Studio 2005 to be able to open and build the project. I will use the excellent and free port of iText library: iTextSharp that can be downloaded here. In this article, I will present a simple source code allowing you to digitally sign a PDF document and modify its metadata. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |