我正在遵循说明这里为 Charles Proxy 安装根证书。
我严格按照概述的步骤进行操作,并确保正确设置权限。但是,当我运行 时sudo update-ca-certificates
,它输出:
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
done.
此后,证书仍然不受信任。我也试过这,步骤相同,但提示我将其安装在 中/usr/local/share/ca-certificates
。当我执行此操作时,update-ca-certificates
返回错误:
Updating certificates in /etc/ssl/certs...
WARNING: Skipping duplicate certificate UbuntuOne-Go_Daddy_Class_2_CA.pem
WARNING: Skipping duplicate certificate UbuntuOne-Go_Daddy_Class_2_CA.pem
WARNING: charles.pem does not contain a certificate or CRL: skipping
WARNING: dhparam.pem does not contain a certificate or CRL: skipping
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
Adding debian:charles.pem
done.
done.
但还是不行。另外,直接通过 Charles ( Help -> SSL Proxying -> Install Charles Root Certificate
) 安装 SSL 证书也行不通,尽管它说安装成功了。
答案1
如果您使用的是 Debian,请尝试将 .cer 更改为 .crt。文件内容仍然相同。