找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 839|回复: 1

解决padavan x509: certificate signed by unknown authority问题

[复制链接]
本帖最后由 winja2008 于 2022-12-2 13:07 编辑

今天安装alist添加阿里云盘一直报证书错误(Post "https://api.aliyundrive.com/v2/file/list": x509: certificate signed by unknown authority),可能我这个是精简版本的padavan,里面没有CA证书,好吧,自己把CA证书下载(https://secure.globalsign.net/cacert/Root-R1.crt)下来后还是报错,后来网上找到这篇文章顺利解决。

以下引用英文原文:


I think it's golang SSL certificate file seach path on Padawan problem, solved:

  • install Entware;
  • install ca-files;
    1. opkg update
    2. opkg upgrade
    3. opkg install ca-bundle
    4. opkg install ca-certificates
    复制代码

  • export ca-path(These are default installed parh, you need find where pandawan install these file by youself then replace path... )
    1. export SSL_CERT_FILE=/opt/etc/ssl/certs/ca-certificates.crt
    2. export SSL_CERT_DIR=/opt/etc/ssl/certs
    复制代码




Or easy-way:
These will work too.
And these will solve all x509: certificate signed by unknown authority problem on your Padawan when using any golang&TLS program.



我的恩山、我的无线 The best wifi forum is right here.
第二个方法命令多了个点,试了很久一直不行,后来去GitHub上找到原回答,命令是export SSL_CERT_FILE=/opt/etc/cacert.pem没有这个点点
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 13:14

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表