← 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
First use a plain HTTP nginx config with no SSL blocksRun certbot: `sudo certbot --nginx -d yourdomain.com`Certbot will update your nginx config automatically with correct cert pathsReload: `sudo systemctl reload nginx`