大网数据广告活动
服务器运维问答

SSL certificate in system store not trusted by Chrome

· 52CE 我爱测

I have a gitlab server running in our company for which I have obtained a certificate signed by our company's CA. Since I can access the site from a machine within our domain without getting SSL errors, I'm assuming, that the ser…

问题原文

原帖链接 · LLlAMnYP · CC BY-SA 4.0

I have a gitlab server running in our company for which I have obtained a certificate signed by our company's CA. Since I can access the site from a machine within our domain without getting SSL errors, I'm assuming, that the server is configured correctly.

When working with my laptop, I of course did not have the company CA certificate. For example openssl s_client -connect my.git.server:443 would return an "Error 19, self signed certificate in chain":

0 s:/C=REDACTED
   i:/DC=REDACTED/DC=REDACTED/CN=IssuingCA
 1 s:/DC=REDACTED/DC=REDACTED/CN=IssuingCA
   i:/CN=RootCA
 2 s:/CN=RootCA
   i:/CN=RootCA

So I accessed the server and exported the root CA cert. I then added it to my system store:

sudo su
cp RootCA /usr/local/share/ca-certificates/extra/RootCA.crt
update-ca-certificates

Now openssl accepts it just fine (return code 0, ok). However, Google Chrome still complains:

This server could not prove that it is my.git.server; its security certificate is not trusted by your computer's operating system.

Were it not for this message, I'd have figured that Chrome has its own certificate store and doesn't care for the OS. But it seems quite clear that the certificate is trusted by the OS and Chrome refers to it.

I am running Ubuntu 18.04. Is this just a quirk of Chrome that it doesn't respect the system certs, or am I missing something?

已采纳解答

原帖链接 · Kelvin · CC BY-SA 4.0

In Ubuntu, Chrome uses its own certificate store. You can import your RootCA.crt in Chrome's

settings -> privacy and security -> manage security keys -> manage certificates -> authorities

Note that updating ubuntu system certificate store by update-ca-certificates has no effect on Chrome.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-12-27)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。