我使用 dnscrypt-server-docker 自托管一个 dnscrypt 服务器(https://github.com/jedisct1/dnscrypt-server-docker)
我在我的 mac os x 上测试了它,工作正常
$ sudo dnscrypt-proxy \
--provider-key=xxxx \
--resolver-address=xxxx:xxxx \
--provider-name=2.dnscrypt-cert.xxxx.org
[NOTICE] Starting dnscrypt-proxy 1.6.0
[INFO] Generating a new session key pair
[INFO] Done
[INFO] Server certificate #808464433 received
[INFO] This certificate looks valid
[INFO] Chosen certificate #808464433 is valid from [2015-12-09] to [2015-12-10] [INFO] Server key fingerprint is xxxxx
[NOTICE] Proxying from 127.0.0.1:53 to xxxx:xxxx
但是当我用openwrt运行它时,它是错误的。
[NOTICE] Starting dnscrypt-proxy 1.6.0
[INFO] Generating a new session key pair
[INFO] Done
[INFO] Server certificate #808464433 received
[INFO] This certificate has not been activated yet
[ERROR] No useable certificates found
[INFO] Refetching server certificates
[INFO] Server certificate #808464433 received
[INFO] This certificate has not been activated yet
[ERROR] No useable certificates found
我尝试升级 dnscrypt-proxy,但效果不一样。
我该如何修复它?
答案1
这是时区问题,所以我的证书无法验证通过。
解决:服务器和客户端使用某个时区。