如何在 CentOS 7 中添加证书颁发机构文件 [英] How to add Certificate Authority file in CentOS 7

查看:69
本文介绍了如何在 CentOS 7 中添加证书颁发机构文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将证书颁发机构 (CA) 文件名 - ca.crt 添加到 /etc/ssl/certs,为此我遵循了 这篇文章.

I am trying to add certificate Authority (CA) file name - ca.crt to /etc/ssl/certs, for that I followed this article.

我将我的 ca.crt 文件复制到 /etc/pki/ca-trust/source/anchors/ 并运行下面的命令;

I copied my ca.crt file to /etc/pki/ca-trust/source/anchors/ and run the command below;

update-ca-trust extract

之后我检查了 /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt 文件,但我没有找到我的 CA.

After that I checked /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt file, but I didn't find my CA.

我无法弄清楚可能是什么问题.

I am not able to figure out what may be the problem.

我做错了什么,我该如何解决?

What am I doing wrong and how can I fix it?

推荐答案

复制你的证书到里面

/etc/pki/ca-trust/source/anchors/

然后运行以下命令

update-ca-trust

这篇关于如何在 CentOS 7 中添加证书颁发机构文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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