Nginx Installation and Configuration

This section describes the installation and configuration of the Nginx web server, which is used to handle HTTP/HTTPS requests and assist in validating the Keyless SSL setup.

  1. Install the Nginx package using the following command:

sudo dnf install -y nginx
  1. Enable the Nginx service to start automatically on system boot, and start the service.

sudo systemctl enable nginx
sudo systemctl start nginx
sudo systemctl status nginx
image-20260610-073124.png

Starting and verifying nginx service

  1. Open the required firewall ports to allow HTTP and HTTPS traffic.

sudo firewall-cmd --add-service=http --permanent
sudo firewall-cmd --add-service=https --per
  • Ports 80 (HTTP) and 443 (HTTPS) must be accessible to allow incoming client connections.

  • This ensures that the web server can receive traffic for testing and validation of the SSL setup.

  1. Verify that Nginx is successfully listening on the required ports.

ss -tulnp | grep -E '80|443'
image-20260610-073429.png

Firewall configuration and verification of HTTP/HTTPS ports