Skip to content

Commit

Permalink
SSLv23_METHOD => TLSv1_2_METHOD
Browse files Browse the repository at this point in the history
  • Loading branch information
niklastheman committed Oct 7, 2024
1 parent 06c3f7c commit 021a24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/network/clients/grpc_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __call__(self, context, callback):
callback((("authorization", f"{FEDN_AUTH_SCHEME} {self._key}"),), None)

def _get_ssl_certificate(domain, port=443):
context = SSL.Context(SSL.SSLv23_METHOD)
context = SSL.Context(SSL.TLSv1_2_METHOD)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((domain, port))
ssl_sock = SSL.Connection(context, sock)
Expand Down

0 comments on commit 021a24d

Please sign in to comment.