bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

IllegalArgumentException in OcspCache when optional parent revocation checker OcspExtensions is empty

Open felixdo opened this issue 1 year ago • 5 comments

This is probably happening since 1.77 caused by the fix for 1479. The OcspCache should somehow check that it doesnt create Extensions from an empty list, which is afaiu the default in PKIXRevocationChecker.

felixdo avatar Dec 11 '23 18:12 felixdo

This is fixed in the latest beta at https://www.bouncycastle.org/betas

dghgit avatar Jan 05 '24 21:01 dghgit

@dghgit Are the betas somehow consumable by maven/gradle builds?

felixdo avatar Jan 08 '24 08:01 felixdo

If you rename the jars to end with 178-SNAPSHOT.jar instead of 178b*.jar you should find the tools can use them okay.

dghgit avatar Jan 09 '24 03:01 dghgit

When is version 1.78 planned to be released with the fix? When validating the SwissSign certificates via this OCSP ( http://ocsp.swisssign.ch) returns this exception.

-> basicOCSPResp.getResponses();

adodao avatar Jan 14 '24 15:01 adodao

The beta builds at https://www.bouncycastle.org/betas are now being distributed in a more "maven friendly" fashion (they end with 1.78-SNAPSHOT, they can also be built directly using ./gradlew clean build in the bc-java repo).

dghgit avatar Feb 12 '24 02:02 dghgit

Good day! is there any update when we could have this fix in a stable release?

phaus avatar Apr 16 '24 07:04 phaus

It looks like there is already a 1.78 in Maven, but according to the

  • #1618
  • #1619
  • #1621

it shouldn't be used, but 1.78.1 seems to be just around the corner.

wkruse avatar Apr 16 '24 08:04 wkruse

1.78 is largely safe to use, if you're affected by the issues we're fixing it simply won't work... (so there's no risk of harm, other than inactivity...)

dghgit avatar Apr 16 '24 08:04 dghgit

Fixed in 1.78.

dghgit avatar Apr 22 '24 09:04 dghgit