Page 1 of 1

Generate SHA2 CSR

Posted: Mon Apr 25, 2016 8:01 pm
by cah
"-sha256" is to force generate SHA2 CSR

1. Manually enter all information

Code: Select all

# openssl req -sha256 -new -key hsiao_net.key -out www_hsiao_net.csr 

Country Name (2 letter code) [AU]:US
State or Province Name (full name) [Some-State]:California
Locality Name (eg, city) []:Thousand Oaks
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Hsiao's Inc.
Organizational Unit Name (eg, section) []:IT
Common Name (e.g. server FQDN or YOUR name) []:www.hsiao.net
Email Address []:root@hsiao.net

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
2. In batch mode

Code: Select all

# openssl req -new -newkey rsa:2048 -nodes -out www_hsiao_net.csr -keyout www_hsiao_net.key -subj "/C=US/ST=California/L=Thousand Oaks/O=Hsiao's Inc./OU=IT/CN=www.hsiao.net"