makdimka077 / xades4j

Automatically exported from code.google.com/p/xades4j
GNU Lesser General Public License v3.0
0 stars 0 forks source link

cannot validate TSA certificate: unable to find valid certification path to requested target #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run all tests

What is the expected output? What do you see instead?
Expected success all tests, but 11 test failed and 58 passed. Test failed 
because "xades4j.verification.TimeStampInvalidSignatureException: Verification 
failed for property 'SignatureTimeStamp': cannot validate TSA certificate: 
unable to find valid certification path to requested target"

What version of the product are you using? On what operating system?
Win7 x64, xades4j 1.2

How fix it?

Original issue reported on code.google.com by stas.agarkov on 14 Mar 2012 at 11:27

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
All the tests are running here. Did you manage to solve it?

Original comment by luis.fgoncalv on 25 Mar 2012 at 8:15

GoogleCodeExporter commented 9 years ago
Any developments on this?

Original comment by luis.fgoncalv on 4 Apr 2012 at 5:10

GoogleCodeExporter commented 9 years ago

Original comment by luis.fgoncalv on 4 Apr 2012 at 5:11

GoogleCodeExporter commented 9 years ago

Original comment by luis.fgoncalv on 8 Apr 2012 at 11:52