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

mac环境运行:接入币安api报错:aiohttp.client_exceptions.ClientConnectorCertificateError: #2

Open
Rock-wj opened this issue Oct 10, 2023 · 2 comments

Comments

@Rock-wj
Copy link

Rock-wj commented Oct 10, 2023

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host fapi.binance.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1007)')]

@Rock-wj
Copy link
Author

Rock-wj commented Oct 10, 2023

aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host fapi.binance.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1007)')]

已解决:
在windows上和linux服务器上都没有问题,也就只有Mac会遇到。
在StackOverflow上找到了彻底解决这类问题的办法:

cd /Applications #从根目录进入应用子目录
cd Python\ 3.7/ #我的Python版本是3.7,大家根据情况弄
sudo ./Install\ Certificates.Command #进入目录后,可以ls一下,看一下都有哪些,找那个对的
输入密码,就开始自动安装证书。
安装好后,去测了下,就发现没问题了。
原文链接:https://blog.csdn.net/u011072037/article/details/102861658

@51bitquant
Copy link
Owner

excellent.

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

2 participants