在JDK8上使用iText和beID(使用2048 RSA密钥)进行数字签名

时间:2014-09-26 13:28:09

标签: itext rsa digital-signature eid

在JKD8下使用时,使用iText和beID(使用RSA密钥2048位)的PDF文件签名将引发异常:RSA密钥必须至多为1024位

26/09/2014 10:48:36 [exitApplication] [SEVERE] - exitApplication with status 1  
    java.security.InvalidKeyException: RSA key must be at most 1024 bits  
    at sun.security.pkcs11.P11Signature.checkKeySize(P11Signature.java:363) at sun...  
    at sun.security.pkcs11.P11Signature.engineInitSign(P11Signature.java::427)

    at java.security.Signature$Delegate.engineInitSign (Signature.java:1129)  
    at java.security.Signature.initSign (Signature;java:512)  
    at com.itextpdf.pdf.security.PrivateKeySignature.sign(PrivateKeySignature.java:115)

    at com.itextpdf.pdf.security.MakeSignature.signDetached(MakeSignature.java:152)

1 个答案:

答案 0 :(得分:2)

使用修复此错误的中间件的更新版本:

Reported Issue

  

此问题应在将来的版本构建(v410)中修复,您可以在http://eid.belgium.be/en/using_your_eid/installing_the_eid_software/windows/上找到