Let's Encrypt
Domains and HTTPS
Point a name at your server, understand DNS, and serve everything over HTTPS.
- 22 lessons
- 5h 8m estimated time
- 2 hands-on labs
- 2 animated diagrams
- 22 quizzes
11 beginner, 11 intermediate. Start at the top or pick a chapter below.
0 of 22 done
Saved in this browser as you finish lessons.
DNS basics
Point a name at your server and read the records behind it.
01 Up next Point a domain at your server (A record) A domain points at a server through a DNS A record that maps the name to the server's IPv4 address. 16 min Beginner Lab 02 Up next DNS record types explained (A, CNAME, MX, TXT) DNS records are entries in a domain's zone that map a name to an address or a service; the record type says what kind of answer it is. 12 min Beginner Diagram 13 Up next What is a DNS zone? Zones, SOA and NS records A DNS zone is the portion of the DNS namespace that one set of nameservers is responsible for, described by a zone file of records starting with an SOA and NS records. 12 min Intermediate 16 Up next Subdomains and wildcard DNS records explained A subdomain is a name below your domain with its own DNS records, and a wildcard record (*.example.com) answers for names that have no explicit record at that level. 10 min Beginner 17 Up next CNAME flattening and ALIAS records explained CNAME flattening, ALIAS and ANAME are provider features that let the bare domain act like a CNAME by resolving the target hostname on the server side and answering with plain A or AAAA records. 10 min Intermediate
Caching and TTL
Why a change takes time to show up and how to check it.
08 Up next Check DNS records with dig dig is a command line tool that asks a DNS server for the records of a domain, so you can see what the internet will resolve it to. 14 min Beginner 09 Up next DNS propagation and TTL explained DNS propagation is the delay while resolvers around the world keep serving a cached old answer until its TTL runs out. 14 min Beginner 14 Up next TTL and DNS caching explained TTL is the number of seconds a DNS answer may be cached, and every layer between you and the authoritative server (resolver, OS, browser) keeps its own copy until that time runs out. 12 min Intermediate 15 Up next DNS propagation myths and what really happens DNS propagation is a loose name for caches expiring; nothing is pushed, and an authoritative nameserver already serves the new record the moment you save it. 12 min Intermediate
Certificates
Get a free certificate, renew it and read what is inside.
03 Up next HTTPS and Let's Encrypt: get a free certificate HTTPS is HTTP over TLS; a certificate proves the server owns the domain, and Let's Encrypt issues them for free through an automated check. 22 min Beginner Lab Diagram 06 Up next Wildcard certificates explained (*.example.com) A wildcard certificate such as "*.example.com" secures every single-level subdomain of a domain with one certificate. 14 min Beginner 07 Up next Inspect a TLS certificate with OpenSSL openssl s_client connects to a TLS server and prints its certificate, and openssl x509 decodes that certificate into readable fields. 14 min Beginner 11 Up next Renew Let's Encrypt certificates and test renewal Let's Encrypt certificates are valid for 90 days, and certbot renews them automatically through a timer that you can test with a dry run. 14 min Intermediate 18 Up next How TLS certificates are issued (ACME, HTTP-01, DNS-01) A TLS certificate is issued through ACME: your client proves it controls the domain by answering a challenge (HTTP-01, DNS-01 or TLS-ALPN-01), then submits a CSR and downloads the signed certificate. 15 min Intermediate 19 Up next Certificate chains and intermediates explained A certificate chain links your server's leaf certificate through one or more intermediate certificates to a root certificate that clients already trust, and the server must send everything except the root. 12 min Intermediate
Serve over HTTPS
Put a proxy in front and send every visitor to one secure address.
04 Up next Redirect www to the bare domain (non-www redirect) A www redirect sends every request for www.example.com to example.com with a 301 status, so each page has one address. 15 min Beginner 05 Up next Redirect HTTP to HTTPS (nginx and Caddy) An HTTP to HTTPS redirect answers requests on port 80 with a permanent redirect to the same address on port 443, so visitors end up on the encrypted site. 18 min Beginner 10 Up next Nginx reverse proxy with free HTTPS using certbot An nginx reverse proxy receives requests on ports 80 and 443 and forwards them to your app on a local port, and certbot adds the HTTPS certificate. 22 min Intermediate 12 Up next Automatic HTTPS with Caddy Caddy is a web server that requests and renews HTTPS certificates automatically, so a reverse proxy needs only the domain and the app address. 14 min Beginner
Harden HTTPS
Headers and settings that keep browsers on the secure path.
20 Up next HSTS explained: the Strict-Transport-Security header HSTS is the Strict-Transport-Security response header that tells a browser to only connect to your site over HTTPS for a set number of seconds, even if a link or user types http. 12 min Intermediate 21 Up next Mixed content explained and how to fix it Mixed content is an HTTPS page that loads some resources, such as scripts, images or frames, over plain HTTP, which browsers block or upgrade because it weakens the page's security. 12 min Intermediate 22 Up next TLS versions and ciphers in plain language A TLS version is the revision of the protocol that secures a connection, and a cipher suite is the set of algorithms it uses; today you should allow TLS 1.2 and 1.3 and disable older versions. 12 min Intermediate