[Nginx] CSR Creation

How to generate a CSR for Nginx using OpenSSL

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

You will be asked a series of questions. Before we go over that, let’s take a look at what is happening in the command we are issuing:

openssl: This is the basic command line tool for creating and managing OpenSSL certificates, keys, and other files.

req: This subcommand specifies that we want to use X.509 certificate signing request (CSR) management. The “X.509” is a public key infrastructure standard that SSL and TLS adheres to for its key and certificate management. We want to create a new X.509 cert, so we are using this subcommand.

-x509: This further modifies the previous subcommand by telling the utility that we want to make a self-signed certificate instead of generating a certificate signing request, as would normally happen. Read More…

Next Page » Scroll to top