Добрый день! Прошлую ошибку мы исправили переустановкой jcp заново согласно инструкции. Настроили хранилище, подключили сертификат с ЭЦП. Но столкнулись теперь с двумя другими ошибками. В нашем приложении в логах зафиксировано следующее:
1. org.apache.xml.security.signature.XMLSignatureException: The requested algorithm
http://www.w3.org/2001/0...#gostr34102001-gostr3411 does not exist. Original Message was: null
Original Exception was java.lang.NullPointerException
at org.apache.xml.security.algorithms.SignatureAlgorithm.getSignatureAlgorithmSpi(SignatureAlgorithm.java:160)
at org.apache.xml.security.algorithms.SignatureAlgorithm.<init>(SignatureAlgorithm.java:73)
at org.apache.xml.security.signature.SignedInfo.<init>(SignedInfo.java:118)
at org.apache.xml.security.signature.XMLSignature.<init>(XMLSignature.java:256)
at sx.smev.security.CryptoProXmlSigner.signRaw(CryptoProXmlSigner.java:284)
at sx.smev.security.CryptoProXmlSigner.sign(CryptoProXmlSigner.java:140)
... 37 more
Caused by: java.lang.NullPointerException
at org.apache.xml.security.algorithms.SignatureAlgorithm.getSignatureAlgorithmSpi(SignatureAlgorithm.java:151)
2. Could not parse certificate: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:109)
at java.security.cert.CertificateFactory.generateCertificate(CertificateFactory.java:305)
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=127, too big.
at sun.security.util.DerInputStream.getLength(DerInputStream.java:544)
at sun.security.util.DerValue.init(DerValue.java:347)
at sun.security.util.DerValue.<init>(DerValue.java:303)
at sun.security.provider.X509Factory.engineGenerateCertificate(X509Factory.java:104)
Подскажите, пожалуйста, что делать? Как устранить эти проблемы?