SSL Certificate for Use With Nginx on Localhost  [draft]

Here are the general steps you can follow: Install OpenSSL on your local machine, if it is not already installed. OpenSSL is a command-line tool used to generate the certificate. Generate a self-signed certificate using the following command: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout localhost.key -out localhost.crt This command will generate a private key (localhost.key) and a self-signed certificate (localhost.crt) that is valid for 365 days. During the process, you’ll be prompted to enter some information about the certificate, such as the Common Name (CN), which should be set to localhost in this case....

March 27, 2023 · Marcin M

Install NGINX on Debian Ubuntu

To get started with NGINX Open Source or NGINX Plus, you first need to install it on a system and learn some basics. Installing on Debian/Ubuntu Create a file named /etc/apt/sources.list.d/nginx.list that contains the following contents: sudo nano /etc/apt/sources.list.d/nginx.list content of nginx.list deb http://nginx.org/packages/mainline/OS/ CODENAME nginx deb-src http://nginx.org/packages/mainline/OS/ CODENAME nginx check you system OS and CODENAME lsb_release -a the file nginx.list should be look like below # comment deb http://nginx.org/packages/mainline/ubuntu/ focal nginx deb-src http://nginx....

June 25, 2022 · Marcin M