Security Basics — SSH, TLS and Certificates›HTTPS and certificates · Cheat sheet & self-check

HTTPS and certificates · wrap-up

Cheat sheet & self-check

21 questions across 7 lessons. Each answer links back to the lesson it came from.

Pick an answer to see if you got it, and why.

  1. Q1. On public Wi-Fi you visit https://bank.example. What can someone on the same network see?

    Show answer

    B. TLS encrypts the content, but the IP address and usually the hostname (DNS, SNI) are visible.

    From lesson 07 · From HTTP to HTTPS
  2. Q2. A site has a valid padlock. What does that prove?

    Show answer

    B. A padlock is about the connection and domain control. Phishing sites can have valid certificates too.

    From lesson 07 · From HTTP to HTTPS
  3. Q3. What does HSTS do?

    Show answer

    B. After the first visit, the browser refuses plain HTTP for the domain for the max-age period.

    From lesson 07 · From HTTP to HTTPS
  4. Q4. Which field does a browser check against the hostname you typed?

    Show answer

    B. Modern browsers and clients use the SAN list. A certificate with the name only in the CN is rejected by browsers.

    From lesson 08 · Anatomy of a certificate
  5. Q5. A certificate for *.example.com is valid for which name?

    Show answer

    B. A wildcard covers exactly one label at that position. Add example.com as a separate SAN if needed.

    From lesson 08 · Anatomy of a certificate
  6. Q6. What goes into a CSR?

    Show answer

    B. The private key stays with you. The CSR carries the public key and names, signed to prove you hold the private key.

    From lesson 08 · Anatomy of a certificate
  7. Q7. Why do public CAs sign websites with an intermediate certificate instead of the root?

    Show answer

    B. Root keys are kept offline in secure facilities. Intermediates do the daily signing and can be revoked and replaced.

    From lesson 09 · Certificate authorities and the chain of trust
  8. Q8. A server only sends its leaf certificate, not the intermediate. What often happens?

    Show answer

    B. Servers must send the full chain (leaf + intermediates). Browsers hide the mistake; other clients expose it.

    From lesson 09 · Certificate authorities and the chain of trust
  9. Q9. What is a trust store?

    Show answer

    B. Every client decides trust by checking whether the chain ends at a root in its own trust store.

    From lesson 09 · Certificate authorities and the chain of trust
  10. Q10. Why does curl reject a self-signed certificate by default?

    Show answer

    B. The encryption is fine, but identity is unproven. An attacker can make a self-signed certificate with any name.

    From lesson 10 · Self-signed certificates and your own CA
  11. Q11. What is the right way to make internal clients accept your private CA's certificates?

    Show answer

    B. Trusting the CA keeps all other checks (name, dates, signature) working. Skipping verification removes them all.

    From lesson 10 · Self-signed certificates and your own CA
  12. Q12. Which file must be protected most carefully in a private CA?

    Show answer

    B. Whoever has the CA's private key can issue certificates that all your clients trust.

    From lesson 10 · Self-signed certificates and your own CA
  13. Q13. How does Let's Encrypt check you control example.com with an HTTP-01 challenge?

    Show answer

    B. Only someone who controls the web server for that name can put the token there.

    From lesson 11 · Free, automated certificates with ACME
  14. Q14. You need a wildcard certificate *.example.com. Which challenge must you use?

    Show answer

    B. Wildcards require proving control of the DNS zone, by creating a TXT record at _acme-challenge.example.com.

    From lesson 11 · Free, automated certificates with ACME
  15. Q15. Why test against the staging environment first?

    Show answer

    B. Staging has much higher limits and issues untrusted test certificates, ideal for getting automation right.

    From lesson 11 · Free, automated certificates with ACME
  16. Q16. Why do certificates expire at all?

    Show answer

    B. Short validity limits damage from leaked keys and out-of-date facts, since revocation is unreliable.

    From lesson 12 · Certificate expiry and renewal
  17. Q17. What does 'openssl x509 -checkend 2592000' tell you?

    Show answer

    B. 2,592,000 seconds = 30 days. It exits 0 if still valid after that time, 1 if not; easy to use in scripts.

    From lesson 12 · Certificate expiry and renewal
  18. Q18. Public TLS certificate lifetimes are scheduled to fall to how many days by 2029?

    Show answer

    B. The CA/Browser Forum approved a phased reduction: 200 days from March 2026, 100 from March 2027, 47 from March 2029.

    From lesson 12 · Certificate expiry and renewal
  19. Q19. curl says 'unable to get local issuer certificate' but the site works in Chrome. Most likely cause?

    Show answer

    B. Browsers often fill in a missing intermediate; curl doesn't. Fix the server to send fullchain.pem.

    From lesson 13 · Fixing common TLS errors
  20. Q20. Every HTTPS site fails on one machine with 'certificate is not yet valid' or 'expired'. What should you check first?

    Show answer

    B. When all sites fail the same way, the client's clock is the common factor.

    From lesson 13 · Fixing common TLS errors
  21. Q21. 'wrong version number' from curl against https://host:80 usually means…

    Show answer

    B. The client expected a TLS reply and got plain text. Use the right port or scheme.

    From lesson 13 · Fixing common TLS errors