--- a/eric7/E5Network/E5SslUtilities.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/E5Network/E5SslUtilities.py Sun May 16 20:07:24 2021 +0200 @@ -18,11 +18,13 @@ ] try: - from PyQt5.QtNetwork import QSslSocket + from PyQt6.QtNetwork import QSslConfiguration except ImportError: # no SSL available, so there is nothing to initialize return - strongCiphers = [c for c in QSslSocket.supportedCiphers() + strongCiphers = [c for c in QSslConfiguration.supportedCiphers() if c.name() not in blacklist and c.usedBits() >= 128] - QSslSocket.setDefaultCiphers(strongCiphers) + defaultSslConfiguration = QSslConfiguration.defaultConfiguration() + defaultSslConfiguration.setCiphers(strongCiphers) + QSslConfiguration.setDefaultConfiguration(defaultSslConfiguration)