Wilma icon indicating copy to clipboard operation
Wilma copied to clipboard

OpenJdk 13 HTTPS handling issue - BCXDHPublicKey cannot be cast to class XECPublicKey

Open tkohegyi opened this issue 4 years ago • 4 comments

Proxy log contains this error message:

java.lang.ClassCastException: class org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey cannot be cast to class java.security.interfaces.XECPublicKey (org.bouncycastle.jcajce.provider.asymmetric.edec.BCXDHPublicKey is in unnamed module of loader 'app'; java.security.interfaces.XECPublicKey is in module java.base of loader 'bootstrap')

The issue is caused by issue in 3rd party library - https://github.com/bcgit/bc-java/issues/589 - see more details there. Meanwhile we are waiting for real solution, this workaround sometimes work:

Start Wilma with additional parameter in command line: -Djdk.tls.namedGroups="secp256r1, secp384r1, ffdhe2048, ffdhe3072"

tkohegyi avatar Apr 15 '21 19:04 tkohegyi

Issue still exists after BCv1.69 - https://github.com/bcgit/bc-java/issues/620 is still active

tkohegyi avatar Jun 11 '21 11:06 tkohegyi

Issue still exists with BCv1.71

tkohegyi avatar May 12 '22 13:05 tkohegyi

Issue still exists with BCv1.77

tkohegyi avatar Feb 11 '24 20:02 tkohegyi