Digital Signature 2006-07-23 - By Junior + Suporte
Back Hi all,
I'm trying to Sign a PDF with iTextSharp, I have found a lot of example in the internet, but all talks about digital sign with a PFX file, I want to sign a PDF with an certificate stored in the Microsoft Store (my). C# have a function to get the certificates from My, but this function return a certificate in X509Certificate2 object, and this type is not accept by function CreateSignature(). I want to know if the BouncyCastle have any function to get the My certificates, to return the certificate in right type to be used in CreateSignature(), or if have any way to convert X509Certificate2 in a acceptable parameter to be passed in CreateSignature().
Thanks All.
Luiz Carlos Zancanella Junior
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0"> <TITLE>Digital Signature</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Arial">Hi all,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en -us"><FONT SIZE=2 FACE="Arial">I’m trying to Sign a PDF with iTextSharp, I have found a lot of example in the internet, but all talks about digital sign with a PFX file, I want to sign a PDF with an certificate stored in the Microsoft Store (my). C# have a function to get the certificates from My, but this function return a certificate in X509Certificate2 object, and this type is not accept by function CreateSignature(). I want to know if the BouncyCastle have any function to get the My certificates, to return the certificate in right type to be used in CreateSignature(), or if have any way to convert X509Certificate2 in a acceptable parameter to be passed in CreateSignature().< /FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Thanks All.</FONT>< /SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT SIZE=2 FACE="Arial">Luiz Carlos Zancanella Junior</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="pt-br"></SPAN><SPAN LANG="pt-br"></SPAN><SPAN LANG="en -us"></SPAN></P>
</BODY> </HTML> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions
|
|