Closed GoogleCodeExporter closed 9 years ago
Check the readme file on the GVA dir on the tests
(http://code.google.com/p/xades4j/source/browse/#svn%2Ftags%2Fversion-1.2.0%2Fsr
c%2Ftest%2Fcert%2Fgva). You probably need to update the CRL.
Let me know if this solves the problem.
Original comment by luis.fgoncalv
on 14 Mar 2012 at 11:56
Yes, it work. Yet 4 test successed. But example test errVerifyCMissingCertRef
still failed:
errVerifyCMissingCertRef
java.lang.Exception: Unexpected exception,
expected<xades4j.verification.CompleteCertRefsCertNotFoundException> but
was<xades4j.verification.TimeStampInvalidSignatureException>
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:29)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.junit.runners.Suite.runChild(Suite.java:115)
at org.junit.runners.Suite.runChild(Suite.java:23)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)
Caused by: xades4j.verification.TimeStampInvalidSignatureException:
Verification failed for property 'SignatureTimeStamp': cannot validate TSA
certificate: unable to find valid certification path to requested target
at xades4j.verification.TimeStampUtils.getEx(TimeStampUtils.java:43)
at xades4j.verification.TimeStampUtils.verifyTokens(TimeStampUtils.java:87)
at xades4j.verification.SignatureTimeStampVerifier.verify(SignatureTimeStampVerifier.java:64)
at xades4j.verification.SignatureTimeStampVerifier.verify(SignatureTimeStampVerifier.java:35)
at xades4j.verification.QualifyingPropertiesVerifierImpl.verifyProperties(QualifyingPropertiesVerifierImpl.java:59)
at xades4j.verification.XadesVerifierImpl.getValidationDate(XadesVerifierImpl.java:299)
at xades4j.verification.XadesVerifierImpl.verify(XadesVerifierImpl.java:176)
at xades4j.verification.VerifierTestBase.verifySignature(VerifierTestBase.java:113)
at xades4j.verification.VerifierTestBase.verifySignature(VerifierTestBase.java:106)
at xades4j.verification.XadesVerifierErrorsTest.testErrVerifyCMissingCertRef(XadesVerifierErrorsTest.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:22)
... 22 more
Original comment by stas.agarkov
on 14 Mar 2012 at 12:29
All the tests are running here. Did you manage to solve it?
Original comment by luis.fgoncalv
on 25 Mar 2012 at 8:15
Any developments on this?
Original comment by luis.fgoncalv
on 4 Apr 2012 at 5:10
Original comment by luis.fgoncalv
on 4 Apr 2012 at 5:11
Original comment by luis.fgoncalv
on 8 Apr 2012 at 11:52
Original issue reported on code.google.com by
stas.agarkov
on 14 Mar 2012 at 11:27