How to generate a CSR code using OpenSSL (Apache, Nginx, etc)



How to generate a CSR code using OpenSSL (Apache, Nginx, etc)

How to generate a CSR code using OpenSSL (Apache, Nginx, etc)

To obtain an SSL Certificate, it is first necessary to generate and submit a Certificate Signing Request (CSR) code to the Certificate Authority (or an SSL vendor). How do I create a CSR file in OpenSSL?

This short guide explains how to generate a CSR code using the OpenSSL utility on a GNU-Linux-based server (Ubuntu, CentOS, etc). The instructions are applicable if you run such well-known web servers like Apache and NGINX, or other mail/app servers like Postfix/Dovecot.

The command in the video is:
openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr

When the CSR is generated, send it to your SSL provider to proceed with SSL activation.

If your SSL is from Namecheap, you can continue to this guide (skip the CSR generation part): https://www.youtube.com/watch?v=ORyaBDVvCBQ

Hope this guide saves a lot of your time. Wanna buy me a drink? 🙂 Feel free to leave a tip here: https://withkoji.com/@easyssl/0g3j

Comments are closed.