Generate SHA2 CSR

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Generate SHA2 CSR

Post 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"
CAH, The Great
Post Reply