有没有专门做ppt的网站吗,织梦论坛,信誉好的公司官网建设,唐山注册公司网上申请入口使用openssl生成自签名证书 1. 交互式生成2. 一步生成参考 1. 交互式生成
自签名 SSL 证书的生成涉及一个简单的 3 步过程#xff1a;
步骤 1#xff1a;创建服务器私钥
openssl genrsa -out cert.key 2048步骤 2#xff1a;创建证书签名请求 (CSR)
openssl req -new -k… 使用openssl生成自签名证书 1. 交互式生成2. 一步生成参考 1. 交互式生成
自签名 SSL 证书的生成涉及一个简单的 3 步过程
步骤 1创建服务器私钥
openssl genrsa -out cert.key 2048步骤 2创建证书签名请求 (CSR)
openssl req -new -key cert.key -out cert.csrYou 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.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ., the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:BJ
Locality Name (eg, city) []:BJ
Organization Name (eg, company) [Internet Widgits Pty Ltd]:TM
Organizational Unit Name (eg, section) []:TM
Common Name (e.g. server FQDN or YOUR name) []:tm.com
Email Address []:Please enter the following extra attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:步骤 3使用私钥和 CSR 签署证书
openssl x509 -req -days 3650 -in cert.csr -signkey cert.key -out cert.crtCertificate request self-signature ok
subjectCCN, STBJ, LBJ, OTM, OUTM, CNtm.com恭喜您现在拥有有效期为 10 年的自签名 SSL 证书。
2. 一步生成
openssl req -new -newkey rsa:2048 -days 3650 -nodes -x509 \-subj /CCN/STBJ/LBJ/OTM/OUTM/CNtm.com \-keyout cert.key -out cert.crt参考
Generation of a Self Signed Certificate