Hello Vertx group,
I was wondering if it is possible to set a minimal DH-param size in OpenSSLEngineOptions or anywhere else.
The reasoning for this is that Vertx performs a default key exchange with a size of 1024 bits which is considered weak according to SSLlabs.
The key size could be customized on the normal JdkSSLEngine by changing the jdk.tls.ephemeralDHKeySize JVM property to the desired key size.
I've searched around for a solution and saw that tomcat-native seems to use SSLContext.setTmpDH(long serverContext, String filePath) to provide custom DH-params.
Calling this method does not work on Vertx (using netty-tcnative-boringssl-static) resulting in the following error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.SSLContext.setTmpDH(JLjava/lang/String;)V
at org.apache.tomcat.jni.SSLContext.setTmpDH(Native Method)
at Initializer.main(Initializer.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Would there be a way to solve this issue?