← Back to all fixes

Nginx fails to start: SSL cert file not found

The Issue

`sudo nginx -t` gives: `cannot load certificate .../fullchain.pem: No such file or directory`

Root Cause

Your nginx.conf references Let's Encrypt cert paths but certbot has not run yet.

How to Fix
  1. First use a plain HTTP nginx config with no SSL blocks
  2. Run certbot: `sudo certbot --nginx -d yourdomain.com`
  3. Certbot will update your nginx config automatically with correct cert paths
  4. Reload: `sudo systemctl reload nginx`