Re: BouncyCastle certs expired, breaking tests?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: BouncyCastle certs expired, breaking tests?

Uri Blumenthal

> On Aug 10, 2016, at 22:54 , Uri Blumenthal <[hidden email]> wrote:
>
>>
>> org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: certificate expired on 20160803124921GMT+00:00
>> at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1519)
>> at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:299)
>> at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
>> at org.bouncycastle.jce.provider.test.CertPathValidatorTest.checkPolicyProcessingAtDomainMatch(CertPathValidatorTest.java:272)
>> at org.bouncycastle.jce.provider.test.CertPathValidatorTest.performTest(CertPathValidatorTest.java:409)
>> at org.bouncycastle.util.test.SimpleTest.perform(SimpleTest.java:59)
>> at org.bouncycastle.jce.provider.test.AllTests$SimpleTestTest.testJCE(AllTests.java:38)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498)
>> at junit.framework.TestCase.runTest(TestCase.java:176)
>> at junit.framework.TestCase.runBare(TestCase.java:141)
>> at junit.framework.TestResult$1.protect(TestResult.java:122)
>> at junit.framework.TestResult.runProtected(TestResult.java:142)
>> at junit.framework.TestResult.run(TestResult.java:125)
>> at junit.framework.TestCase.run(TestCase.java:129)
>> at junit.framework.TestSuite.runTest(TestSuite.java:252)
>> at junit.framework.TestSuite.run(TestSuite.java:247)
>> at junit.framework.TestSuite.runTest(TestSuite.java:252)
>> at junit.framework.TestSuite.run(TestSuite.java:247)
>> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
>> at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
>> at junit.framework.TestResult.runProtected(TestResult.java:142)
>> at junit.extensions.TestSetup.run(TestSetup.java:27)
>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)
>> Caused by: java.security.cert.CertificateExpiredException: certificate expired on 20160803124921GMT+00:00
>> at org.bouncycastle.jcajce.provider.asymmetric.x509.X509CertificateObject.checkValidity(X509CertificateObject.java:143)
>> at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1514)
>> ... 27 more
>>
--
Uri Blumenthal
[hidden email]


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: BouncyCastle certs expired, breaking tests?

David Hook

Sometimes I feel so old!

Thanks for the tip, an update for the class should appear on github
shortly - I've modified the test to run as at 1st August (give or take a
bit).

Regards,

David

On 11/08/16 12:58, Uri Blumenthal wrote:

>> On Aug 10, 2016, at 22:54 , Uri Blumenthal <[hidden email]> wrote:
>>
>>> org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate: certificate expired on 20160803124921GMT+00:00
>>> at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1519)
>>> at org.bouncycastle.jce.provider.PKIXCertPathValidatorSpi.engineValidate(PKIXCertPathValidatorSpi.java:299)
>>> at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
>>> at org.bouncycastle.jce.provider.test.CertPathValidatorTest.checkPolicyProcessingAtDomainMatch(CertPathValidatorTest.java:272)
>>> at org.bouncycastle.jce.provider.test.CertPathValidatorTest.performTest(CertPathValidatorTest.java:409)
>>> at org.bouncycastle.util.test.SimpleTest.perform(SimpleTest.java:59)
>>> at org.bouncycastle.jce.provider.test.AllTests$SimpleTestTest.testJCE(AllTests.java:38)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498)
>>> at junit.framework.TestCase.runTest(TestCase.java:176)
>>> at junit.framework.TestCase.runBare(TestCase.java:141)
>>> at junit.framework.TestResult$1.protect(TestResult.java:122)
>>> at junit.framework.TestResult.runProtected(TestResult.java:142)
>>> at junit.framework.TestResult.run(TestResult.java:125)
>>> at junit.framework.TestCase.run(TestCase.java:129)
>>> at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>> at junit.framework.TestSuite.run(TestSuite.java:247)
>>> at junit.framework.TestSuite.runTest(TestSuite.java:252)
>>> at junit.framework.TestSuite.run(TestSuite.java:247)
>>> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
>>> at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
>>> at junit.framework.TestResult.runProtected(TestResult.java:142)
>>> at junit.extensions.TestSetup.run(TestSetup.java:27)
>>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
>>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
>>> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)
>>> Caused by: java.security.cert.CertificateExpiredException: certificate expired on 20160803124921GMT+00:00
>>> at org.bouncycastle.jcajce.provider.asymmetric.x509.X509CertificateObject.checkValidity(X509CertificateObject.java:143)
>>> at org.bouncycastle.jce.provider.RFC3280CertPathUtilities.processCertA(RFC3280CertPathUtilities.java:1514)
>>> ... 27 more
>>>
> --
> Uri Blumenthal
> [hidden email]
>
>
>


Loading...