Challenge - 5 Problems
Let's Encrypt Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of the Certbot command for obtaining a certificate?
You run the command
sudo certbot certonly --nginx -d example.com. What output indicates a successful certificate issuance?Attempts:
2 left
💡 Hint
Look for messages about successful certificate receipt.
✗ Incorrect
The output shows the process of obtaining a certificate with Certbot using the nginx plugin. A successful message includes 'Successfully received certificate.'
❓ Configuration
intermediate2:00remaining
Which nginx server block configuration correctly enables HTTPS with Let's Encrypt certificate?
Given you have obtained certificates stored in
/etc/letsencrypt/live/example.com/, which server block correctly configures nginx for HTTPS?Attempts:
2 left
💡 Hint
Check the listen directive and certificate file names.
✗ Incorrect
The correct configuration listens on port 443 with ssl enabled and uses the fullchain.pem and privkey.pem files for the certificate and key.
❓ Troubleshoot
advanced2:00remaining
Why does Certbot fail with 'Could not bind to port 80' error?
You run
sudo certbot certonly --standalone -d example.com but get an error about binding to port 80. What is the most likely cause?Attempts:
2 left
💡 Hint
Port 80 must be free for Certbot standalone mode.
✗ Incorrect
Certbot standalone mode needs to bind to port 80 to respond to Let's Encrypt challenges. If nginx or another service is already using port 80, Certbot cannot start its server.
🔀 Workflow
advanced2:00remaining
What is the correct renewal workflow for Let's Encrypt certificates with nginx and Certbot?
Which sequence correctly describes the steps to renew certificates automatically with Certbot and nginx?
Attempts:
2 left
💡 Hint
Renewal should be automated and nginx reloaded after renewal.
✗ Incorrect
The recommended workflow is to run 'certbot renew' regularly (often via cron or systemd timer), which renews certificates if they are close to expiry, then reload nginx to use the new certificates.
✅ Best Practice
expert3:00remaining
Which practice ensures secure and reliable automatic renewal of Let's Encrypt certificates with nginx?
Choose the best practice for automatic certificate renewal and nginx configuration to avoid downtime and security risks.
Attempts:
2 left
💡 Hint
Automation and proper nginx HTTP to HTTPS redirection improve security and uptime.
✗ Incorrect
Using Certbot's systemd timer automates renewal without manual intervention. Having a separate HTTP server block that redirects to HTTPS ensures users always use secure connections. This setup avoids downtime and security risks.