cd /etc/nginx openssl genrsa -des3 -out cert.key 1024 密码:123456 openssl req -new -key cert.key -out cert.csr Enter pass phrase for cert.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) [XX]:cn State or Province Name (full name) []:hebei Locality Name (eg, city) [Default City]:shijiazhuang Organization Name (eg, company) [Default Company Ltd]:hbfec Organizational Unit Name (eg, section) []:soft Common Name (eg, your name or your server's hostname) []:ythserver Email Address []:yth@hbfec.com
Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:123456 An optional company name []:hbfec