Skip to content

Commit 9db84ae

Browse files
DSpeichertseveas
authored andcommitted
Fixes compatibility with OpenSSL v1.1.0+
Fixes #244
1 parent 4fe65e0 commit 9db84ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hpilo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def close(self):
400400
# Even more sadly, some iLOs are still using RC4-SHA
401401
# which was dropped from the default cipher suite in
402402
# Python 2.7.10 and Python 3.4.4. Add it back here :(
403-
self.ssl_context.set_ciphers("RC4-SHA:" + ssl._DEFAULT_CIPHERS)
403+
self.ssl_context.set_ciphers(ssl._DEFAULT_CIPHERS + ":RC4-SHA")
404404
return self.ssl_context.wrap_socket(
405405
sock, server_hostname=self.hostname)
406406
except ssl.SSLError as exc:

0 commit comments

Comments
 (0)