From 74a8b8ff21016945d62b2d1995601066bd9c6037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20Vernerov=C3=A1?= Date: Tue, 19 Dec 2023 14:57:47 +0100 Subject: [PATCH] Add TLS1.3 to postgres_get_server_cert.py --- postgres_get_server_cert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres_get_server_cert.py b/postgres_get_server_cert.py index 9301bee..065f7f8 100755 --- a/postgres_get_server_cert.py +++ b/postgres_get_server_cert.py @@ -66,7 +66,7 @@ def request_ssl(sock): def get_ssl_context(): # Return the strongest SSL context available locally - for proto in ('PROTOCOL_TLSv1_2', 'PROTOCOL_TLSv1', 'PROTOCOL_SSLv23'): + for proto in ('PROTOCOL_TLSv1_3', 'PROTOCOL_TLSv1_2', 'PROTOCOL_TLSv1', 'PROTOCOL_SSLv23'): protocol = getattr(ssl, proto, None) if protocol: break