diff options
author | Dean Troyer <dtroyer@gmail.com> | 2012-12-19 09:52:54 -0600 |
---|---|---|
committer | Dean Troyer <dtroyer@gmail.com> | 2012-12-20 14:03:19 -0600 |
commit | f65f96bc59599a855f9f2b2cdfa503a8cdb1f758 (patch) | |
tree | 3d5ee3587c8f11bf77fe6f7ae04b7ad881029b6f /bin | |
parent | 7df9cadbf006624192c48b81d1c9f1b4ed679a37 (diff) | |
download | python-swiftclient-f65f96bc59599a855f9f2b2cdfa503a8cdb1f758.tar.gz |
Add --os-cacert
Add support to specify a ca certificate bundle to verify
keystone TLS (https) certificates. This only verifies
certificates on the keystone connection, swift https
connections are unchanged.
Change-Id: I14351b405af4fd3d1970ba6656c1282a5d0a1082
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -42,6 +42,7 @@ def get_conn(options): auth_version=options.auth_version, os_options=options.os_options, snet=options.snet, + cacert=options.os_cacert, insecure=options.insecure) @@ -1144,6 +1145,12 @@ Example: default=environ.get('OS_ENDPOINT_TYPE'), help='Openstack Endpoint type. ' \ 'Defaults to env[OS_ENDPOINT_TYPE]') + parser.add_option('--os-cacert', + metavar='<ca-certificate>', + default=environ.get('OS_CACERT'), + help='Specify a CA bundle file to use in verifying a ' + 'TLS (https) server certificate. ' + 'Defaults to env[OS_CACERT]') parser.add_option('--insecure', action="store_true", dest="insecure", default=False, help='Allow swiftclient to access insecure keystone ' |