On 31/12/2012 4:44, Jose M. Morales C. wrote:
Hi there, I'm new to all this digital certificates and signing pdf, so
I'm trying to make a program to sign PDF files with a Digital
Certificate in a Smart Card.
I'm able to do it with a development certificate generated by me, but
when I try to sign with my Digital Certificate generated by the CA of
my country, can't do it. When I try to export the Private Key it does
not find it, actually it's is not in Pkcs12Store.
If I check the certificate in my machine it has a Private Key, but
when I try to export the certificate It contains a restriction to
export the private key.
There is any difference when I work with this certificates?
Of course there is!
Your smart card would be very insecure if you were able to export the
private key. Isn't this obvious?
It should also be obvious that you shouldn't use PKCS#12 when you're
supposed to use PKCS#11.
There is EXCELLENT documentation available here:
http://itextpdf.com/book/digitalsignatures
Please read it!
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php