- 1 year ago
emsdk install fails with urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
If you are encountering an urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
error while installing emsdk, it means that there is an issue with the SSL certificate verification process. This error can occur if your system's SSL certificates are out of date or if there is a problem with the SSL certificate being used by the server.
Here are some possible solutions to this error:
Update your system's SSL certificates: Try updating your system's SSL certificates to the latest version. You can do this by downloading and installing the latest updates for your operating system.
Disable SSL verification: While disabling SSL verification is not recommended, you can try this as a temporary solution to install emsdk. To disable SSL verification, you can set the
SSL_CERT_FILE
environment variable to point to a file that does not verify the SSL certificate. For example, you can set it to the path of thecacert.pem
file that comes with your Python installation:javascriptexport SSL_CERT_FILE=/path/to/python/cacert.pem
Use a different installation method: If the above solutions do not work, you can try using a different installation method for emsdk, such as downloading the binary package directly from the emsdk website.
Contact the server administrator: If the SSL certificate being used by the server is invalid or expired, you may need to contact the server administrator to resolve the issue.
By following these solutions, you may be able to resolve the urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
error and install emsdk successfully.