2010-02-03 10:03:54 +0000 2010-02-03 10:03:54 +0000
← Software User

在Chrome (Linux)中添加永久SSL证书的异常情况

Score 66
Advertisement

我有一个问题,一个网站的SSL证书与网站域名不对应。Chrome会给我一个关于这个网站的警告(而且是正确的),我必须手动忽略它。每次重启Chrome,我都需要再次忽略证书问题。

我试过用certutil,用C,,和P,, trustargs将证书添加为受信任的证书,但没用。我找不到一组trustargs可以告诉它忽略哪个域名在使用证书。

有没有办法告诉Chrome(或certutil)无论哪个域使用这个证书,都要信任它?

Advertisement
Advertisement

Answers (5)

Solution found!

Score 60
2010-02-11 09:27:16 +0000

这是【如果安全证书不受信任就禁用Google Chrome警告】(https://superuser.com/questions/27268/disable-google-chrome-warning-if-security-certificate-is-not-trusted).

您可以通过安装证书来避免受信任网站的消息。
可以通过点击地址栏中的警告图标,然后点击 Certificate Information -> Details Tab -> Export... 保存证书来完成。

使用Chrome的Preferences -> Under The Hood -> Manage Certificates -> Import。
在导入的 “证书存储 "界面,选择 "将所有证书放置在以下存储中",并浏览 "可信根认证机构"。重新启动Chrome浏览器。

Advertisement
Score 15
2013-05-22 13:45:00 +0000

在Linux上使用Chrome 23.0.1271.97版:

1.首先点击证书警告,将证书导出到文件系统。(Connection \ Certificate Information \ Details \ Export) 2. 然后使用 certutil 来将此保存的证书添加为受信任的对等体。

  1. 重新启动Chrome浏览器,就可以了。
Advertisement
Score 10
2013-04-22 12:41:47 +0000
Advertisement

我在Ubuntu Linux的Chromium中工作的唯一方法是使用这个certutil命令行:

certutil -d sql:$HOME/.pki/nssdb -A -t "CP,CP," -n CertNickName -i cert_file.crt
```。
Score 3
2010-02-11 15:58:18 +0000

请看一下这个帖子。 无法说服Chrome浏览器我的Tivo的自签证书没问题.

文章中提到。

你需要指定 “C,, "的信任标志来解决NSS的问题

如果这个线程确实与你的问题有关,看起来这是Chrome浏览器中一个已知的bug,其中 "P,, "信任标志无法工作。libpkix ignores the P (trusted peer) trust flag

希望能帮到你(我回答得有点盲目,因为我不是在Linux上)。