[ISSUE #1233] Fix CVE-2011-1473

This commit is contained in:
SSpirits
2021-03-11 18:11:29 +08:00
committed by GitHub
parent e277216b4f
commit e9b2d8522d
@@ -133,7 +133,7 @@ public class TlsHelper {
SelfSignedCertificate selfSignedCertificate = new SelfSignedCertificate();
return SslContextBuilder
.forServer(selfSignedCertificate.certificate(), selfSignedCertificate.privateKey())
.sslProvider(SslProvider.JDK)
.sslProvider(provider)
.clientAuth(ClientAuth.OPTIONAL)
.build();
} else {