本文介绍在Centos 6和7上如何使用 Openssl 生成10年有效期的自签名证书
欢迎转载,转载请注明出处:https://aoeii.com/posts/how_to_use_openssl_to_creat_10-year-selfsigned-certs_on_centos_6_and_7
----------
# 创建保存证书的目录
[root@www ~]# mkdir certs
[root@www ~]# cd certs
# 创建私钥
[root@www certs]# openssl genrsa -out server.key 2048
> Generating RSA private key, 2048 bit long modulus
> ...................+++
> .......................................................................+++
> e is 65537 (0x10001)
# 通过命令行交互方式创建证书申请文件
[root@www certs]# openssl req -new -key server.key -out server.csr
> You are about to be asked to enter information that will be incorporated
> into your certificate request.
> What you are about to enter is what is called a Distinguished Name or a DN.
&g