Skip to content

Commit 092fbb7

Browse files
committed
add check-tls command to cbapi-response
1 parent fe2a33d commit 092fbb7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/cbapi-response

+10
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,21 @@ def configure(opts):
9393
print("Successfully wrote credentials to {0}.".format(credential_file))
9494

9595

96+
def check_tls(opts):
97+
print("Newest TLS version supported by this install is: {0}.".format(check_python_tls_compatibility()))
98+
99+
96100
command_map = {
97101
"configure": {
98102
"extra_args": {},
99103
"help": "Configure CbAPI",
100104
"method": configure
105+
},
106+
"check-tls": {
107+
"extra_args": {},
108+
"help": "Return the latest version of TLS supported by this version of Python and OpenSSL. "
109+
"Cb Response versions 6.1+ now require TLSv1.2 support.",
110+
"method": check_tls
101111
}
102112
}
103113

0 commit comments

Comments
 (0)