How can I generate a Certificate Signing Request?

When you apply for an SSL Certificate, you will generate a Certificate Signing Request (CSR) on your server, which is a block of encoded text. It contains important info about your domain and organization, and is used by a Certificate Authority (CA) to create your SSL certificate.

What is CSR?

When you want to issue an SSL certificate, you send a request to a Certificate Authority, known as a CSR. It consists of:

The CSR is used in conjunction with a private key, which is generated at the same time and must be kept secure.

Creating a CSR Using Command Line (SSH)

In case you have SSH access, you can create a CSR using OpenSSL with the following command:

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

What happens when the command is run?

When you run the command, it will ask you for information such as:

When it is complete it will generate two files:

Control Panel (Alternative Method)

If you cannot use SSH, most hosting control panels also have a CSR generator.

You are fair:

Important Notes

Conclusion

Generating a CSR is a necessary step for installing an SSL certificate. It will create the request for a Certificate Authority to issue your SSL and enable HTTPS on your website – securely whether using SSH or a hosting control panel.