(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 []: |