summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/util
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-01 17:03:14 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-01 17:24:51 -0300
commit5b21dfa2ca18ef4840d908b27228f55b8e65b172 (patch)
tree5184689a8f8cbc28b0cec4a63a96fe02b840494b /src/leap/bitmask/util
parentcebbb1eaee51ad9a7e57016dfc62d53888bc5bd4 (diff)
Add support for self signed certs. Closes #5391.
Diffstat (limited to 'src/leap/bitmask/util')
-rw-r--r--src/leap/bitmask/util/leap_argparse.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leap/bitmask/util/leap_argparse.py b/src/leap/bitmask/util/leap_argparse.py
index 7f81881d..88267ff8 100644
--- a/src/leap/bitmask/util/leap_argparse.py
+++ b/src/leap/bitmask/util/leap_argparse.py
@@ -93,6 +93,12 @@ def build_parser():
"Use at your own risk!")
parser.add_argument('--danger', action="store_true", help=help_text)
+ # optional cert file used to check domains with self signed certs.
+ parser.add_argument('--ca-cert-file', metavar="/path/to/cacert.pem",
+ nargs='?', action="store", dest="ca_cert_file",
+ help='Uses the given cert file to verify '
+ 'against domains.')
+
# Not in use, we might want to reintroduce them.
#parser.add_argument('-i', '--no-provider-checks',
#action="store_true", default=False,