How to create and view the contents of an SSL CSR file

To create a SSL certificate signing request (CSR) file use the following openssl command:

openssl req -new -nodes -newkey rsa:2048 -keyout servername.key -out servername.csr

To view the contents use the command:

openssl req -noout -text -in servername.csr

For other CSR commands with openssl use the command:

openssl req list-standard-commands

Last updated: 04/03/2006