Error when using SHA384WITHECDSA certificate with common providers #2413
Unanswered
XyproChance
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently integrating BC-JSSE into some of our products for PQC compliance and certificates signed with SHA384withECDSA are being rejected when validating an external server's certificate chain. This was reproduced identically against www.google.com and www.cloudflare.com and confirmed to work with SunJSSE. This is the current error when attempting to connect that fails during the TLS 1.3 handshake:
We have tested directly and ruled out issues with
We're also fairly certain #1343 is not the problem as this occurs even when properties are fully empty.
If this is not a configuration issue or some misstep on our end I believe we have narrowed this down to either a key-size measurement bug inside BC's KeySizeConstraint logic or a separate algorithm issue inside the JDK itself. If anyone has run into something similar or can see I'm making a mistake your input would be greatly appreciated. At the bottom I have included the code being run attempting a connection to www.google.com and www.cloudflare.com as well as the control test showing a SunJSSE connection does in fact work.
This is using JDK11 and BC 1.85
Reproduction:
Dependencies used (all resolved from Maven Central):
org.bouncycastle:bcprov-jdk18on:1.85(also reproduced on1.79)org.bouncycastle:bctls-jdk18on:1.85(also reproduced on1.79)org.bouncycastle:bcutil-jdk18on:1.85(also reproduced on1.79)io.netty:netty-handler:4.1.101.Final(and its transitivenetty-*dependencies)io.projectreactor.netty:reactor-netty-http:1.0.39(and its transitive dependencies)11.0.18)Build a classpath containing the above (e.g. via Maven
dependency:build-classpathfor aproject that depends on
reactor-netty-http, plus the three BouncyCastle jars), then:javac -cp PqcNettyTest.java
java -cp .; PqcNettyTest
PQCTest1.java
PQCTest2.java
PlainTest.java
All reactions