This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk.git
The following commit(s) were added to refs/heads/master by this push:
new 8ec3c24 add verify cert env var to wskadmin (#4896)
8ec3c24 is described below
commit 8ec3c2465376a1f94fc759c0f60034fb472bb944
Author: Brendan Doyle <[email protected]>
AuthorDate: Mon May 4 15:13:39 2020 -0700
add verify cert env var to wskadmin (#4896)
Co-authored-by: Brendan Doyle <[email protected]>
---
tools/admin/wskutil.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tools/admin/wskutil.py b/tools/admin/wskutil.py
index e23de2a..333e6c8 100644
--- a/tools/admin/wskutil.py
+++ b/tools/admin/wskutil.py
@@ -35,7 +35,9 @@ import socket
# global configurations, can control whether to allow untrusted certificates
# on HTTPS connections
-httpRequestProps = {'secure': True}
+
+verify_cert = os.getenv('DB_VERIFY_CERT') is None or
os.getenv('DB_VERIFY_CERT').lower() != 'false'
+httpRequestProps = {'secure': verify_cert}
def request(method, urlString, body = '', headers = {}, auth = None, verbose =
False, https_proxy = os.getenv('https_proxy', None), timeout = 60):
url = urlparse(urlString)