$ openssl genrsa 2048 > privatekey.pem Generating RSA private key, 2048 bit long modulus ..................+++ ............................................................+++ e is 65537 (0x10001)
$ openssl req -new -key privatekey.pem -out csr.pem 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) [AU]:CN State or Province Name (full name) [Some-State]:si chuang Locality Name (eg, city) []:cheng du Organization Name (eg, company) [Internet Widgits Pty Ltd]:arialyy Organizational Unit Name (eg, section) []:aria Common Name (e.g. server FQDN or YOUR name) []:www.laoyuyu.me Email Address []:laoyuyu@laoyuyu.me
Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:123456 An optional company name []: