OpenSSL create certificate request

OpenSSL create certificate request

Execute this command from a terminal/command window to generate a new private key and a new certificate signing request (csr).

openssl req -new -newkey rsa:4096 -nodes -keyout yourdomain.key -out yourdomain.csr -sha256

It will ask you some questions

Country Name (2 letter code) [AU]:BE
State or Province Name (full name) [Some-State]: Antwerpen
Locality Name (eg, city) []: Antwerpen
Organization Name (eg, company) [Internet Widgits Pty Ltd]: My Company Name
Organizational Unit Name (eg, section) []: Department X 
Common Name (e.g. server FQDN or YOUR name) []: mydomain

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.