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.18: Digital certificates: purpose, features and types

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

55 minutes

Is this really my bank?

You type a web address. A page appears with the right name and logo. But anyone can copy a logo. How does your browser know it is the real bank and not a copy?

It asks for a digital passport. Today you learn what is inside one.

Key words

WordWhat it means
Digital certificateAn electronic passport. It proves who a device, server or person is.
Certificate holderThe company, server or device that the certificate was issued to.
Serial numberA number given to one certificate only.
Expiry dateThe date after which a certificate is no longer valid.
Public keyThe key you share with everyone.
IssuerThe authority that made and signed the certificate.
Certificate authorityA trusted body that issues certificates. Short form: CA.
Server side certificateLets a client check a server is real.
Client side certificateLets a client prove who it is to a server.
Code signing certificateLets an OS check who wrote software and that it was not changed.

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

By the end of this lesson

Note

I can say what a digital certificate is for, name its five features and describe the three types.

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.

The purpose of a certificate

A digital certificate is an electronic signature. It proves that a device, a server or a user is who they say they are.

It does this with asymmetric cryptography. The certificate holds the holder's public key. A trusted body has signed it. If you trust the body, you can trust the key.

The five features

Every certificate holds five things.

  1. The name of the holder: a company, a server or a device.
  2. A unique serial number.
  3. An expiry date.
  4. The holder's public key.
  5. The issuer's signature, which shows which authority made it.

Extra: Make a small test certificate and key

Command
mkdir -p ~/certlab && cd ~/certlab && openssl genrsa -out demo.key 2048 && openssl req -x509 -new -key demo.key -out demo.crt -days 20 -subj "/C=GB/O=Demo Shop/CN=shop.example.test"

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

Extra: Look inside the certificate

Command
cd ~/certlab && openssl x509 -in demo.crt -noout -subject -issuer -serial -dates

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

Read the output

The lines show the subject (the holder: the shop name), the issuer, the serial number and the dates. This test certificate is self-signed, so the issuer is the same as the holder. A browser would not trust it.

The holder, the serial number and the expiry date are on show. The public key and the signature are inside the file too.

The lesson goes on

7 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.