TLS and the chain of trust

The padlock means the connection is encrypted and the site proved it holds a certificate for the name you typed. This set covers making a certificate, reading its fields, and telling a self-signed certificate from one that chains to a trusted root.

4 questions 1 task Read the lesson

Questions

Each one is marked as you go, and the explanation arrives straight after, which is the part worth reading.

4 questions, marked as you go.

1 In a certificate you made yourself, subject and issuer both read CN = termux.local. What does that mean?
2 What does the certificate add beyond encryption?
3 In the Certificate chain block from openssl s_client, what do the s and i lines show?
4 What is a root certificate?

Tasks

These need your own device. Run the command in Termux, then paste what it printed. The marking looks at what the output means, so spacing, version numbers and ordering do not matter. If you have not installed anything yet, the lesson covers the setup.

Make and read a self-signed certificate

This makes a self-signed certificate for the name termux.local, then prints its key fields. Read the subject and the issuer together, and look for the fingerprint.

Run this in Termux On your own device. Nothing on this page executes it. The command runs in your terminal, and this box only reads what you paste back.

openssl req -x509 -newkey rsa:2048 -keyout "$HOME/demo-key.pem" -out "$HOME/demo-cert.pem" -days 365 -nodes -subj "/CN=termux.local" 2>/dev/null; openssl x509 -in "$HOME/demo-cert.pem" -noout -subject -issuer -dates -fingerprint -sha256
Marking your own work Both halves of this are checked in your browser, with no server involved, so nothing stops you from pasting output you did not run. The tasks are written so that the easiest way to pass one is to actually do it and read the result, which is the whole intention.

All sets Read the lesson