And by the way the exception now is from line
*PdfSignatureAppearance.preClose()*
/ExceptionConverter: java.security.InvalidKeyException: Private keys must be
instance of RSAPrivate(Crt)Key or have PKCS#8 encoding
at sun.security.rsa.RSAKeyFactory.translatePrivateKey(Unknown Source)
at sun.security.rsa.RSAKeyFactory.engineTranslateKey(Unknown Source)
at sun.security.rsa.RSAKeyFactory.toRSAKey(Unknown Source)
at sun.security.rsa.RSASignature.engineInitSign(Unknown Source)
at sun.security.rsa.RSASignature.engineInitSign(Unknown Source)
at java.security.Signature$Delegate.init(Unknown Source)
at java.security.Signature$Delegate.chooseProvider(Unknown Source)
at java.security.Signature$Delegate.engineInitSign(Unknown Source)
at java.security.Signature.initSign(Unknown Source)
at com.lowagie.text.pdf.PdfPKCS7.<init>(PdfPKCS7.java:410)
at
com.lowagie.text.pdf.PdfSigGenericPKCS.setSignInfo(PdfSigGenericPKCS.java:113)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:806)
at
com.lowagie.text.pdf.PdfSignatureAppearance.preClose(PdfSignatureAppearance.java:721)
at org.btrust.ws.TestCVProvider.signPDFFile(TestCVProvider.java:178)
at
org.btrust.ws.TestCVProvider.testCryptovisionProvider(TestCVProvider.java:80)
at org.btrust.ws.TestCVProvider.main(TestCVProvider.java:53)/
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/SunPKC11-Exception-when-signing-PDF-tp4340293p4347361.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
iText-questions mailing list
[email protected]
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