Httplib2.SSLHandshakeError while installing Google Cloud SDK

When installing Google Cloud SDK - Python, httplib2.SSLHandshakeError occurs. I have configured unilled_client_secrets.json (shown below return). And that didn't solve the HandshakeError.

Similar questions are asked here below, but no one has received an explicit answer. Thank you for any help you could provide.

~ $. / google-cloud-sdk / install.sh Welcome to the Google Cloud SDK!

Traceback (last call last):
file "/Users/rptrainor/./google-cloud-sdk/bin/bootstrapping/install.py", line 206, in Main ()
File "/Users/rptrainor/./google-cloud -sdk / bin / bootstrapping / install.py ", line 184, basically Install (pargs.override_components, pargs.additional_components)
file" /Users/rptrainor/./google-cloud-sdk/bin/bootstrapping/install.py " , line 130, in the installation window _CLI.Execute (['- quiet', 'components', 'list'])
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 759, under Execution self._HandleAllErrors (exc, command_path_string, defined_arg_names)
file "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 737, under Execution resources = args.calliope_command.Run (cli = self, args = args)
File " /Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py ", line 741, in Run display_info = self.ai.display_info) .Display ()
File" / Users / rptrainor / google-cloud- sdk / lib / googlecloudsdk / calliope / display.py ", line 427, on display self._printer.Print (self._resources)
File" / Users / rptrainor / google-cloud-sdk / lib / googlecloudsdk / core / resource / resource_printer_base .py ", line 251, under" Printing "resources in resources:
File" /Users/rptrainor/google-cloud-sdk/lib/surface/components/list.py ", line 86,in Run result = update_manager.List ()
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py", line 516, in the list _, diff = self._GetStateAndDiff (command_path = 'components.list)

file "/ Users /rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/update_manager.py ", line 446, in _GetStateAndDiff command_path = command_path)
File" / Users / rptrainor / google-cloud-sdk / lib / googlecloudsdk / core / updater / update_manager.py ", line 429, in _GetLatestSnapshot * effective_url.split (','), command_path = command_path)
File" /Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/snapshots.py ", line 165, in FromURLs for URLs in URLs]
File "/Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/updater/snapshots.py", line 186, in _DictFromURL response = installers.ComponentInstaller.MakeRequest (url, command_path)
file "/ Users / rptrainor / google-cloud-sdk / lib / googlecloudsdk / core / updater / installers.py ", line 283, in MakeRequest return url_opener.urlopen (req, timeout = timeout)
File" / Users / rptrainor / google-cloud-sdk / lib / googlecloudsdk / core / url_opener.py ", line 69, in urlopen return opener.open (req, data, timeout)
File" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py " , line 404, open response = self._open (req, data)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 422, in '_open' folder, req) File "/Library/Frameworks/Python.framework/Versions/ 2.7 / lib / python2.7 / urllib2.py ", line 382, ​​in _call_chain result = func (* args) File" /Users/rptrainor/google-cloud-sdk/lib/googlecloudsdk/core/url_opener.py " , line 54, at https_open return self.do_open (build, req)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1181, at do_open h.request ( req.get_method (), req.get_selector (), req.data, headers) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 995, in request self ._send_request (method, url, body, headers)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1029, in _send_request self.endheaders (corpus)
File "/Library/Frameworks/Python.framework/Versions/ 2.7 / lib / python2.7 / httplib.py ", line 991, eventually self._send_output (message_body)
File" /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py " , line 844, in _send_output self.send (MSG)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 806, send self.connect ()
File "/ Users / rptrainor / google-cloud-sdk / lib / third_party / httplib2 / init .py ", line 1081, raise SSLHandshakeError in the connection (e)

httplib2.SSLHandshakeError: [Errno 1] _ssl.c: 510: error: 14090086: SSL> procedures: SSL3_GET_SERVER_CERTIFICATE: certificate verification failed

{
  "web":{
    "client_id":"[[CLIENT_ID_IS_HERE]]",
    "project_id":"[[PROJECT_ID_IS_HERE]]",
    "auth_uri":"https://accounts.google.com/o/oauth2/auth",
    "token_uri":"https://accounts.google.com/o/oauth2/token",
        "auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs",
    "client_secret":"[[CLIENT_SECRET_IS_HERE]]"
    }
}

      

+3


source to share


2 answers


Try updating Python to the latest 2.7.x. I could solve the same problem as updating Python to 2.7.13.



+1


source


One silly but effective solution is to access these URLs through the browser once and accept their certificate.



Also check your computer time. If that doesn't fit, I don't mean the current date. The server will not provide a certificate.

0


source







All Articles