Ubuntu18 firefox 向现有证书添加信任 [英] Ubuntu18 firefox Add trust to a exsisting certificate

查看:56
本文介绍了Ubuntu18 firefox 向现有证书添加信任的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 ubuntu18 桌面,并且我已经将我需要的证书添加到了 Firefox 73.0:

Im using ubuntu18 desktop and i have added the certificates i need to firefox 73.0:

/usr/share/ca-certificates/mozilla

并将其添加到:

/etc/ca-certificates.conf

在文件末尾,如:

mozilla/caname.crt

然后运行:

update-ca-certificate

现在,我可以通过浏览器看到证书在 Firefox 证书列表中,但没有标记任何信任框,所以它不起作用.

now, i can see certificates are in firefox certificate list through the browser but does not have any trust box marked, so it doesnt work.

有没有办法从 cli 强制此证书上的信任标志,也许使用 certutil ?

Is there a way from cli to force the trust flag on this certificates, maybe with certutil ?

我知道有很多方法可以使用 cli 命令将证书输入到 firefox,但没有一种方法对我有用,现在我可以使用上述命令添加证书,但我需要添加信任.

I know there is a lot of ways to enter certificate to firefox using cli commands but none have worked for me, and now i was able to add the certificates using the commands above, but i need to add the trust.

推荐答案

找到了这个解决方案,可以在 ubuntu 上向 firefox 添加证书:

Found this solution to add certificates to firefox on ubuntu :

https://github.com/mozilla/policy-templates/#proxy

只需将此文件添加到:

/usr/lib/firefox/distribution/

touch policies.json

在 policies.json 添加:

In policies.json add:

{
"policies": {
"Certificates": {
    "ImportEnterpriseRoots": true,
    "Install" [
               "somecert1.crt",
               "usr/local/share/ca-certificates/somecert1.crt"
               ]
         }
    }
}

安装部分首先是证书的名称,然后是路径.并重启火狐.如果某些东西不起作用,请尝试重置 firefox,就像在它卡住之前设置了某些东西一样.

The install part is first the name of the cert and then the path. And restart firefox. if somthing doesnt work try resetting firefox as if you have set somthing before it can stuck it.

这种方法在没有 certutil 的情况下效果很好

This method works good without certutil

这篇关于Ubuntu18 firefox 向现有证书添加信任的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆