Repository: ambari
Updated Branches:
  refs/heads/trunk 776a45d2a -> 296ad04c8


AMBARI-11938 - Namenode log contains:javax.net.ssl.SSLHandshakeException: 
Received fatal alert: bad_certificate (tbeerbower)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/296ad04c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/296ad04c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/296ad04c

Branch: refs/heads/trunk
Commit: 296ad04c8f61d54bc99de011eb49af6c2356e9b1
Parents: 776a45d
Author: tbeerbower <tbeerbo...@hortonworks.com>
Authored: Mon Jun 15 21:47:31 2015 -0400
Committer: tbeerbower <tbeerbo...@hortonworks.com>
Committed: Mon Jun 15 21:47:31 2015 -0400

----------------------------------------------------------------------
 .../resource_management/libraries/functions/curl_krb_request.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/296ad04c/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
----------------------------------------------------------------------
diff --git 
a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
 
b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
index 5e7f795..b0b1dca 100644
--- 
a/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
+++ 
b/ambari-common/src/main/python/resource_management/libraries/functions/curl_krb_request.py
@@ -87,12 +87,12 @@ def curl_krb_request(tmp_dir, keytab, principal, url, 
cache_file_prefix, krb_exe
   error_msg = None
   try:
     if return_only_http_code:
-      curl = subprocess.Popen(['curl', '--negotiate', '-u', ':', '-b', 
cookie_file, '-c', cookie_file, '-w',
+      curl = subprocess.Popen(['curl', '-k', '--negotiate', '-u', ':', '-b', 
cookie_file, '-c', cookie_file, '-w',
                              '%{http_code}', url, '--connect-timeout', 
str(CONNECTION_TIMEOUT),'-o', '/dev/null'],
                              stdout=subprocess.PIPE, stderr=subprocess.PIPE, 
env=kerberos_env)
     else:
       # returns response body
-      curl = subprocess.Popen(['curl', '--negotiate', '-u', ':', '-b', 
cookie_file, '-c', cookie_file,
+      curl = subprocess.Popen(['curl', '-k', '--negotiate', '-u', ':', '-b', 
cookie_file, '-c', cookie_file,
                              url, '--connect-timeout', 
str(CONNECTION_TIMEOUT)],
                              stdout=subprocess.PIPE, stderr=subprocess.PIPE, 
env=kerberos_env)
 

Reply via email to