1
回答
java.security.SignatureException: Signature length not correct: got 128 but was expecting 64
科大讯飞通用文字识别100000次/天免费使用。立即申请   
java.security.SignatureException: Signature length not correct: got 128 but was expecting 64
at sun.security.rsa.RSASignature.engineVerify(RSASignature.java:189)
at java.security.Signature$Delegate.engineVerify(Signature.java:1172)
at java.security.Signature.verify(Signature.java:623)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:446)

at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:394)

先从pfx文件导出cer文件,然后用pfx签名,再用cer验签。出现上面异常,一般什么原因?

(jdk1.7)

举报
扬烽
发帖于2年前 1回/3K+阅
顶部