GoAuthing icon indicating copy to clipboard operation
GoAuthing copied to clipboard

keepalive程序报错

Open AlanFFang opened this issue 9 months ago • 3 comments

在openwrt系统上配置GoAuthing服务。使用auth命令登录校园网正常,但使用online命令时重新登录报错,报错如下: 2025-04-09 16:10:39 INFO auth-thu main.go:278 keepAlive request error (will retry): Head "https://www.baidu.com/": tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match www.baidu.com 2025-04-09 16:10:42 ERROR auth-thu main.go:382 Auth error: keepAlive request error (re-login might be required): Head "https://www.baidu.com/": tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match www.baidu.com

从报错提示上看,似乎是由于keepalive函数验证tls证书不匹配导致的。 排查了系统时间的问题,系统时间与现实一致。请问是否有方法解决报错问题?

AlanFFang avatar Apr 09 '25 16:04 AlanFFang

可能是没有在openwrt上找到ca证书信任store?

jiegec avatar Apr 10 '25 01:04 jiegec

这个感觉就是登录失败导致的。登录失败,所以上游拦截了你对baidu的请求、并用自签名证书尝试把你引导到登录界面,就会发生这种情况。 建议测试:curl -vvv -k https://www.baidu.com/ 如果发现返回“Authentication is required”的提示,则说明事实上登录失败了才导致的这一错误。 另外,建议尝试auth-thu --debug auth,看看auth时候的细节,有无异常。

Starrah avatar Apr 18 '25 05:04 Starrah

这个感觉就是登录失败导致的。登录失败,所以上游拦截了你对baidu的请求、并用自签名证书尝试把你引导到登录界面,就会发生这种情况。 建议测试:curl -vvv -k https://www.baidu.com/ 如果发现返回“Authentication is required”的提示,则说明事实上登录失败了才导致的这一错误。 另外,建议尝试auth-thu --debug auth,看看auth时候的细节,有无异常。

@AlanFFang 请您尝试上面的方法,请问您现在是否还有问题?如有问题,请提供更多细节(如上述命令的输出);如无问题,此issue将于一周后关闭。

Starrah avatar Apr 21 '25 15:04 Starrah

鉴于issue author没有没有进一步回复,此issue关闭。如仍有问题,请reopen。

Starrah avatar Jun 15 '25 05:06 Starrah