所需包:openssl-libs
/etc/pki/tls
/etc/pki/tls/certs
/etc/pki/tls/ct_log_list.cnf
.
.
.
openssl配置文件/etc/pki/tls/openssl.cnf,三种策略:match匹配、optional可选、supplied提供
match:要求申请填写的信息跟CA设置信息必须一致
optional:可有可无,跟CA设置信息可不一致
supplied:必须填写这项申请信息
搭建私有CA:
创建相关目录:
[root@centos8 pki]#mkdir CA/{certs,crl,newcerts,private}
[root@centos8 pki]#tree CA/
CA/
├── certs
├── crl
├── newcerts
└── private
4 directories, 0 files
生成证书索引库文件:
[root@centos8 CA]#touch index.txt
[root@centos8 CA]#ll
total 0
drwxr-xr-x. 2 root root 6 Apr 27 02:29 certs
drwxr-xr-x. 2 root root 6 Apr 27 02:29 crl
-rw-r--r--. 1 root root 0 Apr 27 02:33 index.txt #索引库文件
drwxr-xr-x. 2 root root 6 Apr 27 02:29 newcerts
drwxr-xr-x. 2 root root 6 Apr 27 02:29 private
指定颁发第一个证书的序列号:
<
本文详细介绍了在Linux CentOS8系统中如何使用openssl搭建私有CA,包括配置策略、创建目录、生成CA私钥和自签名证书,以及如何为应用颁发和吊销证书的过程。
最低0.47元/天 解锁文章
803

被折叠的 条评论
为什么被折叠?



