/ 36浏览

HTTPS 证书 CSR 配置生成

需要用到的两个命令

openssl genrsa -out /etc/nginx/cert/star.skyner.cn.key 2048
openssl req -new -key /etc/nginx/cert/star.skyner.cn.key -out /etc/nginx/cert/star.skyner.cn.csr

使用 GPT 协助生成所需信息

感谢您的澄清。根据您提供的信息,以下是更新后的英文翻译:

  • 您的名(Given Name): Huanjie
  • 您的姓(Surname): Shen
  • 您的头衔(Title): Mr.
  • 您的地址(Address): No. 10 Zengcheng Avenue,*****, Apartment *****
  • 您所在的城市(City): Guangzhou
  • 您所在的省份(Province): Guangdong
  • 您的邮编(Postal Code): 511300
  • 您所在的国家(Country): China
  • 您的邮箱(Email Address): shenhuanjie@live.cn

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.
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) [XX]:CN
State or Province Name (full name) []:Guangdong
Locality Name (eg, city) [Default City]:Guangzhou
Organization Name (eg, company) [Default Company Ltd]:^C
[root@VM-32-16-tencentos cert]# openssl req -new -key private.key -out csr.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.
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) [XX]:CN
State or Province Name (full name) []:Guangdong
Locality Name (eg, city) [Default City]:Guangzhou
Organization Name (eg, company) [Default Company Ltd]:Shenhuanjie
Organizational Unit Name (eg, section) []:Persional
Common Name (eg, your name or your server's hostname) []:*.skyner.cn
Email Address []:shenhuanjie@live.cn

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

证书购买(建议)

官网:https://zunsign.idcengine.com/