X509Util.determineEntityCertificate doesn't catch lower layer SecurityException
Basics
Logistics
Basics
Logistics
Description
Environment
OS X, Oracle Java 7
Activity
Show:
Scott Cantor November 2, 2012 at 4:38 AM
Fixed in rev 758.
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Created November 2, 2012 at 4:33 AM
Updated December 26, 2012 at 10:16 PM
Resolved November 2, 2012 at 4:38 AM
I saw a failing test case that I tracked to this loop that checks for a match between a set of certs and a private key parameter. The loop only works if the SecurityHelper.matchKeyPair function doesn't throw, but it's documented as throwing SecurityException. Java 7 seems to throw on a non-matching keypair, which breaks the loop by throwing out.
For this function's purposes, a throw of SecurityException from the match() method is just a false result and the loop should continue by swallowing it.