]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1663] Added an error on cert/key but no ca
authorFrancis Dupont <fdupont@isc.org>
Thu, 25 Mar 2021 14:07:31 +0000 (15:07 +0100)
committerFrancis Dupont <fdupont@isc.org>
Thu, 25 Mar 2021 14:07:31 +0000 (15:07 +0100)
src/bin/shell/kea-shell.in

index 279edb4b1a019c0106c8b78e5216e08839696beb..62de548f8f0620c057e912e5983e74db63ad8b3c 100644 (file)
@@ -113,8 +113,12 @@ def shell_body():
         print("--cert and --key must be used together")
         sys.exit(1)
     if cmd_args.cert:
+        if cmd_args.ca == '':
+            print("--cert and --key with HTTPS disabled (no --ca)")
+            sys.exit(1)
         params.cert = cmd_args.cert
     if cmd_args.key:
+        # HTTPS check already done for the cert
         params.key = cmd_args.key
     if cmd_args.auth_user != '':
         user = cmd_args.auth_user