Vlag voor accepteren certificaat

This commit is contained in:
Marcel Nijenhof
2020-10-03 17:03:01 +02:00
parent 81511300bf
commit 5b296a1da7

View File

@@ -11,6 +11,7 @@ def run(args):
try: try:
lmwsip = LmwSip(host=args.host, port=args.port, lmwsip = LmwSip(host=args.host, port=args.port,
ssl=not args.unencrypted, ssl=not args.unencrypted,
check_ssl=not args.acceptssl,
cleartelnet=args.cleartelnet) cleartelnet=args.cleartelnet)
except Exception as e: except Exception as e:
print("Connect to lmw failed: %s" % e) print("Connect to lmw failed: %s" % e)
@@ -36,6 +37,8 @@ def main():
parser = argparse.ArgumentParser(description="Run a sip file.") parser = argparse.ArgumentParser(description="Run a sip file.")
parser.add_argument("-u", "--unencrypted", action="store_true", parser.add_argument("-u", "--unencrypted", action="store_true",
help="Run a sip connection without ssl") help="Run a sip connection without ssl")
parser.add_argument("-a", "--acceptssl", action="store_true",
help="Accept ssl certificate")
parser.add_argument("-c", "--cleartelnet", action="store_true", parser.add_argument("-c", "--cleartelnet", action="store_true",
help="Clear telnet protocol in tcp session") help="Clear telnet protocol in tcp session")
parser.add_argument("-H", "--host", action='store', parser.add_argument("-H", "--host", action='store',