mirror of
https://github.com/Napsty/check_esxi_hardware.git
synced 2024-11-22 02:13:46 +01:00
Fixing TLSv1 protocol version
This commit is contained in:
parent
d8f9fa1c82
commit
68428d1ddf
@ -530,7 +530,7 @@ def getopts() :
|
|||||||
help="password, if password matches file:<path>, first line of given file will be used as password", metavar="PASS")
|
help="password, if password matches file:<path>, first line of given file will be used as password", metavar="PASS")
|
||||||
|
|
||||||
group2.add_option("-C", "--cimport", dest="cimport", help="CIM port (default 5989)", metavar="CIMPORT")
|
group2.add_option("-C", "--cimport", dest="cimport", help="CIM port (default 5989)", metavar="CIMPORT")
|
||||||
group2.add_option("-S", "--sslproto", dest="sslproto", help="SSL/TLS protocol version to overwrite system default: SSLv2, SSLv3, TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3", metavar="SSLPROTO")
|
group2.add_option("-S", "--sslproto", dest="sslproto", help="SSL/TLS protocol version to overwrite system default: SSLv2, SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3", metavar="SSLPROTO")
|
||||||
group2.add_option("-V", "--vendor", dest="vendor", help="Vendor code: auto, dell, hp, ibm, intel, or unknown (default)", \
|
group2.add_option("-V", "--vendor", dest="vendor", help="Vendor code: auto, dell, hp, ibm, intel, or unknown (default)", \
|
||||||
metavar="VENDOR", type='choice', choices=['auto','dell','hp','ibm','intel','unknown'],default="unknown")
|
metavar="VENDOR", type='choice', choices=['auto','dell','hp','ibm','intel','unknown'],default="unknown")
|
||||||
group2.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, \
|
group2.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, \
|
||||||
@ -659,7 +659,7 @@ if cimport:
|
|||||||
# Use non-default SSL protocol version
|
# Use non-default SSL protocol version
|
||||||
if sslproto:
|
if sslproto:
|
||||||
verboseoutput("Using non-default SSL protocol: "+sslproto)
|
verboseoutput("Using non-default SSL protocol: "+sslproto)
|
||||||
allowed_protos = ["SSLv2", "SSLv3", "TLSv1.0", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
|
allowed_protos = ["SSLv2", "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
|
||||||
if any(proto.lower() == sslproto.lower() for proto in allowed_protos):
|
if any(proto.lower() == sslproto.lower() for proto in allowed_protos):
|
||||||
import os
|
import os
|
||||||
sslconfpath = '/tmp/'+hostname+'_openssl.conf'
|
sslconfpath = '/tmp/'+hostname+'_openssl.conf'
|
||||||
|
Loading…
Reference in New Issue
Block a user