-
Notifications
You must be signed in to change notification settings - Fork 695
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
x509: certificate signed by unknown authority #1
Comments
Hi @rafw , |
package main import ( func main() { |
Almost the same as your sample code. I removed access key and secret key in the demo. Output: |
seems like a certificate issue on your server, can you try to update your ca bundle? if you are using CentOS, try this: |
哎呀妈呀,我用的是macOs 10.11,同样的代码放在ubuntu上就对了。同样这个mac上,用chrome\firefox访问也能正确返回数据,连验证都不需要,直接输入 https://support.globalsign.com/customer/portal/articles/1353318-view-and-or-delete-crl-ocsp-cache
golang/go#16589 究竟咋回事呢?老闹心了。 |
请问你的Go版本是什么?根据你提供的几个链接,升级到Go1.9是否还存在这个问题? |
从1.7升级到1.9,还是一样的,按外国论坛的说法是因为mac 10.10、10.11导致的,升级操作系统可以解决。但是我不敢升级,现在升级是要到10.13.1了,不是稳定版 |
我在OSX 10.12上没有遇到这个问题,看样子是跟本地环境有关。有几个方法可以确认是否是OSX上Go的问题:
|
1、使用其他go binance库也有同样的报错 |
Hi,
对于OSX环境的这个错误,我只看到go源码的这个文件出现,如果想排查可以根据源码看看哪里有问题:https://github.com/golang/go/blob/release-branch.go1.9/src/crypto/x509/verify.go#L405 |
嗯,等过段时间10.13稳定版出了,我升级后再试。程序最终也是linux、windows下跑,我更担心是mac不安全导致的。 |
ok,如果解决了,麻烦告知解决办法。谢谢。 |
升级到最新版本10.13.1,问题解决了 🆗 |
Streams the partial depth book websock. Tests pass. Client works in use.
Option support
Error occurs in NewAggTradesService.
OS: mac os 10.11
Go: 1.9
The text was updated successfully, but these errors were encountered: