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

macOS使用二进制文件提示SSL: CERTIFICATE_VERIFY_FAILED #54

Closed
primovist opened this issue Apr 19, 2019 · 14 comments
Closed

macOS使用二进制文件提示SSL: CERTIFICATE_VERIFY_FAILED #54

primovist opened this issue Apr 19, 2019 · 14 comments
Assignees
Labels

Comments

@primovist
Copy link

[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify fa
iled: unable to get local issuer certificate (_ssl.c:1
045)

@NewFuture
Copy link
Owner

NewFuture commented Apr 19, 2019

https证书验证有问题,试试

export PYTHONHTTPSVERIFY=0
./ddns-osx

related #47

@NewFuture NewFuture self-assigned this Apr 19, 2019
@primovist
Copy link
Author

https证书验证有问题,试试

export PYTHONHTTPSVERIFY=0
./ddns-osx

related #47

看#47使用的是dnspod,而我使用的是aliyun,故障依旧

@NewFuture NewFuture added the bug label Apr 19, 2019
@NewFuture
Copy link
Owner

我确认一下这是系统配置还是python的问题

@primovist
Copy link
Author

我确认一下这是系统配置还是python的问题

系统新安装的10.14.4,系统自带python 2.7.10
我回去用源码试试看。

@NewFuture
Copy link
Owner

这个和系统python的版本似乎关系不大,release出来的是python3.7编译的版本

你试试 上次python2.7编译出来的版本
https://dev.azure.com/NewFuture-CI/2ab09aad-c4b4-4c57-ab1b-2fb92c485664/_apis/build/builds/83/artifacts?artifactName=ddns-mac-2.7&api-version=5.1-preview.5&%24format=zip

这里解释是python3.6之后对证书验证有变化
https://stackoverflow.com/questions/27835619/urllib-and-ssl-certificate-verify-failed-error

@NewFuture
Copy link
Owner

源码如过也不行,在run.py加一下这个试试

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

@primovist
Copy link
Author

源码如过也不行,在run.py加一下这个试试

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

源码不用加这些声明就可以,但是编译之后就不可以了(2.7编译一样不行),是不是证书位置引用错误了?

@primovist
Copy link
Author

还有个问题,如果IP地址没改变却执行了py文件,是仅提示一个 . 吗?

@NewFuture
Copy link
Owner

还有个问题,如果IP地址没改变却执行了py文件,是仅提示一个 . 吗?

是的,这个时候没有更新

@primovist
Copy link
Author

@primovist
Copy link
Author

@NewFuture
Copy link
Owner

@primovist
Copy link
Author

v2.5.8 release 了

https://github.com/NewFuture/DDNS/releases/tag/v2.5.8

好的!谢谢通知!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants