Signature verification exception on Java 7

Cantor, Scott cantor.2 at osu.edu
Wed Jan 30 10:08:32 EST 2013


On 1/30/13 1:59 AM, "Takeshi NISHIMURA" <takeshi at nii.ac.jp> wrote:
>
>Log:
>1:19:57.770 - ERROR [org.opensaml.xml.security.SigningUtil:250] - Error
>during signature verification java.security.SignatureException: Signature
>length not correct: got 256 but was expecting 128
>
>My thought:
>Java 7 may raise an exception when it try to verify the data with the
>certificate of different key length.
>If an SP has two certificates for signing in metadata, one with 1024bit
>key and the other with 2048bit,
>and also if the SP signs AuthnRequest, Java 7 seems to produce uncaught
>exceptions like this occasionally.

Uncaught would imply that it crashes the profile handler ungracefully
and/or doesn't continue to try and check the rest of the certs. Is that
what you mean?

-- Scott




More information about the dev mailing list