alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
39.44k stars 5.12k forks source link

后台设置使用aria2出现证书验证相关错误 #6479

Open JanthonAlyn opened 1 month ago

JanthonAlyn commented 1 month ago

Please make sure of the following things

AList Version / AList 版本

v3.34.0

Driver used / 使用的存储驱动

Onedrive

Describe the bug / 问题描述

我在AList的服务上安装了aria2程序,并配置好支持RPC调用,同时启用了SSL证书,但是后台设置aria2时,使用https或者wss协议连接会报错Failed to init aria2 client: tls: failed to verify certificate: x509: certificate signed by unknown authority 该证书DigiCert签发且在有效期内,且使用AriaNg前端调用该aria2正常(使用https协议或wss协议)。 image

若关闭RPC安全调用,使用http/ws协议调用aria则正常,SSL证书域名与调用aria RPC时使用的域名相符合 image

Reproduction / 复现链接

https://alist.any-x.cn:5243/@manage/settings/other

Config / 配置

config.json

Logs / 日志

image

welcome[bot] commented 1 month ago

Thanks for opening your first issue here! Be sure to follow the issue template!