badass-runtime-plugin
badass-runtime-plugin copied to clipboard
[🐛BUG] handshake_failure with custom jre
Problem
Since java 11, HttpClient has been introduced. It is an implementation of HTTP URL connection as a client with standard java API.
However, this API requires an extra module i.e jdk.crypto.ec in the JRE. Without that, it can not talk to a server that has an elliptic curve certificate. You will get a handshake_failure error when trying to talk to a server running with this.
Solution
Just add jdk.crypto.ec in default module list for creating custom runtime.