Challenge - 5 Problems
SSL Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Check SSL certificate expiration date
You run this command to check the expiration date of an SSL certificate for example.com:
What is the expected output format?
openssl s_client -connect example.com:443 -servername example.com < /dev/null | openssl x509 -noout -dates
What is the expected output format?
Nginx
openssl s_client -connect example.com:443 -servername example.com < /dev/null | openssl x509 -noout -datesAttempts:
2 left
💡 Hint
The command outputs two lines starting with notBefore and notAfter.
✗ Incorrect
The openssl x509 -noout -dates command outputs the certificate validity period with 'notBefore' and 'notAfter' lines in a fixed format.
❓ Configuration
intermediate2:00remaining
Nginx SSL configuration snippet
Which of the following nginx server block snippets correctly enables SSL using the certificate files located at /etc/ssl/certs/example.crt and /etc/ssl/private/example.key?
Attempts:
2 left
💡 Hint
The ssl_certificate directive must point to the certificate file, and ssl_certificate_key to the private key.
✗ Incorrect
The correct order is ssl_certificate for the public certificate and ssl_certificate_key for the private key. The listen directive must include ssl.
❓ Troubleshoot
advanced2:00remaining
Nginx fails to start after SSL config change
After adding SSL configuration to your nginx server block, nginx fails to start with the error:
What is the most likely cause?
nginx: [emerg] PEM_read_bio_PrivateKey("/etc/ssl/private/example.key") failedWhat is the most likely cause?
Attempts:
2 left
💡 Hint
The error mentions PEM_read_bio_PrivateKey failure.
✗ Incorrect
This error usually means nginx cannot read the private key file due to missing file or permission issues.
🔀 Workflow
advanced2:00remaining
Order of steps to install SSL certificate on nginx
What is the correct order of steps to install a new SSL certificate on an nginx server?
Attempts:
2 left
💡 Hint
You must have the files before configuring nginx.
✗ Incorrect
First get the files, then update config, test syntax, and finally reload nginx.
✅ Best Practice
expert3:00remaining
Secure SSL configuration for nginx
Which nginx SSL configuration snippet follows best security practices to enable strong encryption and prevent known vulnerabilities?
Attempts:
2 left
💡 Hint
Use only modern TLS versions and strong ciphers.
✗ Incorrect
Best practice is to enable only TLS 1.2 and 1.3, use strong ciphers, and prefer server ciphers.