SSL证书CSR文件生成

(1)         第一步:生成证书请求文件(CSR)

(2)    进入OpenSSL安装的目录,运行如下命令生成私钥:

openssl genrsa -des3 2048 > beauty88.key

Loading 'screen' into random state - done

Generating RSA private key, 2048 bit long modulus

..........++++++

........++++++

e is 65537 (0x10001)

Enter pass phrase:

Verifying - Enter pass phrase:

(3)    如果使用-des3参数,将会需要输入一个密码对私钥进行加密,如不需要对私钥加密请不要使用-des3选项。

(4)         将会生成server.key私钥文件

(5)    运行如下命令生成证书请求文件(CSR

openssl req -new -key beauty88.key > beauty88.csr

(6)    接下来提提示输入私钥密码和申请证书的详细信息

Enter pass phrase for server.key:

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) []:TW

State or Province Name (full name) []:Taiwan

Locality Name (eg, city) []:Taipei

Organization Name (eg, company) []:Beauty88 Biotech Co., Ltd.

 

Organizational Unit Name (eg, section) []:MIS

Common Name (eg, your websites domain name) []:www.beauty88.com.tw

Email Address []:service@beauty88.com.tw

 

Please enter the following 'extra' attributes

to be sent with your certificate request

A challenge password []:

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值