You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the release of JDK 11.0.10, I've begun to see the following exceptions in my logs:
Caused by: 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 mod
ule of loader 'app'; java.security.interfaces.XECPublicKey is in module java.base of loader 'bootstrap')
at sun.security.ssl.XDHKeyExchange$XDHEPossession.<init>(XDHKeyExchange.java:108) ~[?:?]
at sun.security.ssl.NamedGroup$XDHFunctions.createPossession(NamedGroup.java:754) ~[?:?]
at sun.security.ssl.NamedGroup.createPossession(NamedGroup.java:394) ~[?:?]
at sun.security.ssl.SSLKeyExchange$T13KeyAgreement.createPossession(SSLKeyExchange.java:568) ~[?:?]
at sun.security.ssl.SSLKeyExchange.createPossessions(SSLKeyExchange.java:84) ~[?:?]
at sun.security.ssl.KeyShareExtension$CHKeyShareProducer.produce(KeyShareExtension.java:257) ~[?:?]
at sun.security.ssl.SSLExtension.produce(SSLExtension.java:563) ~[?:?]
at sun.security.ssl.SSLExtensions.produce(SSLExtensions.java:253) ~[?:?]
at sun.security.ssl.ClientHello$ClientHelloKickstartProducer.produce(ClientHello.java:650) ~[?:?]
at sun.security.ssl.SSLHandshake.kickstart(SSLHandshake.java:525) ~[?:?]
at sun.security.ssl.ClientHandshakeContext.kickstart(ClientHandshakeContext.java:107) ~[?:?]
at sun.security.ssl.TransportContext.kickstart(TransportContext.java:232) ~[?:?]
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:433) ~[?:?]
... 54 more
In this release support was added for ECC curves X25519 and X448 in TLS. This appears to not play nicely with BC 1.67. Searching through prior issues, it seems that there was a similar report for JDK 13 that was fixed in #620. Fortunately for those needing a workaround, the one presented there works for me by setting the following JVM arg:
Howdy,
With the release of JDK 11.0.10, I've begun to see the following exceptions in my logs:
In this release support was added for ECC curves X25519 and X448 in TLS. This appears to not play nicely with BC 1.67. Searching through prior issues, it seems that there was a similar report for JDK 13 that was fixed in #620. Fortunately for those needing a workaround, the one presented there works for me by setting the following JVM arg:
Sorry if this is a duplicate, just looking to get visibility out there!
The text was updated successfully, but these errors were encountered: