Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

CS 1.20: How a digital certificate is made

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

60 minutes

Getting a passport for a web site

A shop wants a padlock on its web site. It cannot just make its own, because no browser would trust it. It must ask a trusted body.

There are four steps, and the order matters. You will do the first three yourself, with real tools, in a small safe copy of the real thing.

Key words

WordWhat it means
Key pairA public key and a private key, made together.
Private keyThe key you keep secret.
Public keyThe key you share with everyone.
Certificate signing requestA file that asks a certificate authority for a certificate. Short form: CSR.
Certificate authorityA trusted body that signs certificates. Short form: CA.
Digital certificateAn electronic passport that proves who a device, server or user is.
Trust storeThe list of authorities that a device already trusts.
InstallPut a certificate and its key where the server can use them.
ApplicantThe person or company asking for a certificate.

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can put the four steps of making a certificate in order and say who does each one.

Starter: what you already know

Have a go

Starter: what you already know

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Step 1: make a key pair

The applicant makes a key pair. The private key stays on the server and is never sent anywhere. The public key will go into the request.

Everything later depends on this private key staying secret.

Extra: Make a key pair

Command
mkdir -p ~/certlab && cd ~/certlab && openssl genrsa -out shop.key 2048 && openssl rsa -in shop.key -pubout -out shop.pub

A command for the lesson’s lab terminal. It is shown here and not run.

Read the result

The first command made shop.key, the private key. The second worked out shop.pub, the matching public key. OpenSSL may print writing RSA key. That is normal.

On the lab, the private key file is readable only by you. Keep it that way.

Step 2: make a certificate signing request

A certificate signing request, or CSR, is a file. It holds the public key and the details to go on the certificate, such as the name of the shop and its web address.

The request is signed with the private key to show that the applicant owns the pair. It is safe to send. It holds no secret.

The lesson goes on

13 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.