Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed #85

Closed
trzecieu opened this issue Jun 30, 2017 · 10 comments
Closed

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed #85

trzecieu opened this issue Jun 30, 2017 · 10 comments

Comments

@trzecieu
Copy link
Collaborator

On macOS we started to observe an error when emsdk update-tags is performed:

Traceback (most recent call last):
  File "./emsdk", line 2199, in <module>
    sys.exit(main())
  File "./emsdk", line 2103, in main
    fetch_emscripten_tags()
  File "./emsdk", line 1480, in fetch_emscripten_tags
    download_file('https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/nightly/' + os_name_for_llvm_location() + '_32bit/index.txt', 'llvm-nightlies-32bit.txt', download_even_if_exists=True)
  File "./emsdk", line 420, in download_file
    u = urlopen(url)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>

What is cause by unaccessibility of https://s3.amazonaws.com/mozilla-games/emscripten/packages/llvm/nightly/osx_32bit/index.txt

@juj
Copy link
Collaborator

juj commented Jul 12, 2017

I wonder if this was some kind of transient error. Can you try again if the error still occurs?

@trzecieu
Copy link
Collaborator Author

trzecieu commented Jul 29, 2017

Hi, just tested on different machine, linux this time:

root@e9ee50aded49:/emsdk_portable# ./emsdk  install node-4.1.1-32bit
Installing tool 'node-4.1.1-32bit'..
Error downloading URL 'https://s3.amazonaws.com/mozilla-games/emscripten/packages/node-v4.1.1-linux-x86.tar.gz': <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
Installation failed!


Update to this commend: on linux it was my fault due missing ca-certificates package

@juj
Copy link
Collaborator

juj commented Aug 14, 2017

I've tried to reproduce this on multiple different systems, but have been unable to. Which OS X version was this on? Does this happen if you reinstall from the portable installer from scratch?

@oscarberonius
Copy link

I am having the same issue on mac os high sierra 10.13.2. Any updates on this ?

@juj
Copy link
Collaborator

juj commented Feb 2, 2018

Sorry, currently it's unknown as to why this would be happening. What is the exact error message log that gets printed?

@oscarberonius
Copy link

oscarberonius commented Feb 5, 2018 via email

@juj
Copy link
Collaborator

juj commented Feb 5, 2018

This thread might be relevant: https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

@ghost
Copy link

ghost commented Jan 11, 2020

Please copy at least something relevant because, as we know, stuff disappears off the internet without notice.

Running /Applications/Python\ 3.6/Install\ Certificates.command from terminal fixed the problem for me on Mac OSX.

@brandon1525
Copy link

Please copy at least something relevant because, as we know, stuff disappears off the internet without notice.

Running /Applications/Python\ 3.6/Install\ Certificates.command from terminal fixed the problem for me on Mac OSX.

This works for me, I only change the python version to 3.8 in my case, and then run again the

./emsdk install latest script

sbc100 added a commit that referenced this issue Mar 13, 2024
sbc100 added a commit that referenced this issue Mar 13, 2024
sbc100 added a commit that referenced this issue Mar 13, 2024
sbc100 added a commit that referenced this issue Mar 13, 2024
sbc100 added a commit that referenced this issue Mar 14, 2024
sbc100 added a commit that referenced this issue Mar 14, 2024
@sbc100
Copy link
Collaborator

sbc100 commented Mar 14, 2024

Fixes in #1355

@sbc100 sbc100 closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants