Allow selecting all protocols

This commit is contained in:
M66B
2025-09-18 17:37:22 +02:00
parent e924334d38
commit 170cfce52d

View File

@@ -62,6 +62,7 @@ import java.net.UnknownHostException;
import java.security.GeneralSecurityException;
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.Security;
import java.security.cert.CertPathValidatorException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
@@ -168,6 +169,11 @@ public class EmailService implements AutoCloseable {
// TLS_FALLBACK_SCSV https://tools.ietf.org/html/rfc7507
// TLS_EMPTY_RENEGOTIATION_INFO_SCSV https://tools.ietf.org/html/rfc5746
static {
Security.setProperty("jdk.tls.disabledAlgorithms", "");
Security.setProperty("jdk.tls.client.protocols", "TLSv1.3,TLSv1.2,TLSv1.1,TLSv1,SSLv3");
}
private EmailService() {
// Prevent instantiation
}