Security Basics — SSH, TLS and Certificates
The security foundation every engineer needs before Kubernetes or zero trust. Why systems get attacked and the core ideas that defend them, the vocabulary used in every security conversation, and cryptography explained without maths. Then the two protocols you use every day: SSH (how it works, keys, and hardening a server) and TLS (what HTTPS adds, every term on a certificate, certificate authorities and the chain of trust, self-signed certificates and a private CA, free automated certificates, expiry and renewal, and fixing the common errors). It finishes with passwords, MFA, secrets, firewalls and patching, and a capstone that hardens a fresh server.
What you'll be able to do
- Explain why security matters using confidentiality, integrity and availability, and name the core defensive principles
- Use security vocabulary precisely: threat, vulnerability, risk, authentication, authorisation, encryption, hashing
- Explain how SSH proves the server and the user, set up keys properly and harden an SSH server safely
- Explain what HTTPS protects, and read every important field on a certificate
- Create a self-signed certificate and a private CA, and know when each is acceptable
- Automate certificates, monitor expiry, and fix the common TLS errors
- Harden a new Linux server end to end with a repeatable checklist
Before you start
Basic Linux command line (Linux, level 1).
How it works
Each lesson: plain-language idea → how it really works → hands-on. Each section ends with a cheat sheet & self-check.
Curriculum
Lessons marked “Read” are ready; the rest are on the way.
Why and what
- 01Why security mattersWhat attackers want, the CIA triad, defence in depth and least privilegeRead →
- 02The vocabulary of securityThreat, vulnerability, risk, exploit, CVE, authentication versus authorisationRead →
- 03Cryptography without the mathsSymmetric and asymmetric keys, hashing, signatures, and what each is forRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 9 questions to check yourself.Open →
SSH
- 04How SSH worksHost keys, known_hosts, key exchange, and how the user proves who they areRead →
- 05SSH keys and client configurationed25519 keys, passphrases, the agent, authorized_keys, ~/.ssh/config and jump hostsRead →
- 06Hardening an SSH serversshd_config settings, testing safely, fail2ban, firewalls, and SSH certificatesRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 9 questions to check yourself.Open →
HTTPS and certificates
- 07From HTTP to HTTPSWhat TLS adds, the handshake in plain words, and what HTTPS does not protectRead →
- 08Anatomy of a certificateSubject, CN, SAN, issuer, validity, serial, key usage, fingerprint, CSR, file formatsRead →
- 09Certificate authorities and the chain of trustRoot, intermediate and leaf, trust stores, public and private CAs, revocationRead →
- 10Self-signed certificates and your own CACreate both with openssl, trust them, and know the risksRead →
- 11Free, automated certificates with ACMELet's Encrypt, HTTP-01 and DNS-01 challenges, certbot, wildcardsRead →
- 12Certificate expiry and renewalWhy certificates expire, shrinking lifetimes, monitoring, and a renewal runbookRead →
- 13Fixing common TLS errorsName mismatch, unknown issuer, expired, incomplete chain, wrong clock, protocol mismatchRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 21 questions to check yourself.Open →
Everyday hygiene
- 14Passwords, MFA and secretsHow passwords are stored, password managers, MFA types, and keeping secrets out of codeRead →
- 15Firewalls, open ports and patchingKnow what is listening, default deny with ufw, and keeping software up to dateRead →
- 16Capstone: harden a new serverUsers, SSH, firewall, updates, HTTPS and monitoring, with a checklist you can reuseRead →
- 📋Cheat sheet & self-checkEvery command from this section on one page, then 9 questions to check yourself.Open →
Real-world scenarios
Work through each one: symptom → misleading signal → evidence → root cause → prevention.
The website shows a red warning page on Sunday morning. Find the cause and make sure it never happens again.
auth.log shows thousands of SSH password attempts a day. Decide what to change and change it without locking yourself out.
A site loads in Chrome but curl and Java clients fail with an unknown issuer. Explain why and fix it.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.