1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| $ openssl ecparam -name secp384r1 -genkey -out server.key
$ openssl req -new -sha256 -key server.key -out server.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) [AU]:jp State or Province Name (full name) [Some-State]:osaka Locality Name (eg, city) []:osaka Organization Name (eg, company) [Internet Widgits Pty Ltd]:my-company Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []:dev.local Email Address []:
Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
$ openssl x509 -req -days 36500 -signkey server.key -in server.csr -out server.crt -extfile san.txt Certificate request self-signature ok subject=C = jp, ST = osaka, L = osaka, O = my-company, CN = dev.local
|