OpenCyber Academy
Engineering · Chapter 19 · English
Course code: OCA-126Chapter 19: OCA-126-C019

Chapter 19 — Identity and cryptography

Open, free learning for anyone who wants to protect people and technology. No account is required to read this text or its worked answers.

Lesson map

Lesson 19 published. Map, example, EX055.

flowchart TD
  N0["Learning outcomes"]
  N1["19.1 Keys and certificates"]
  N2["19.2 IPsec and IKEv2"]
  N3["19.3 TLS for applications"]
  N4["19.4 Key lifecycle"]
  N5["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5
  N5 --> EX["Worked example"]
  EX --> Q["Exercise EX055"]

Logical drawing

flowchart LR
  N0["Learning outcomes"]
  N1["19.1 Keys and certificates"]
  N2["19.2 IPsec and IKEv2"]
  N3["19.3 TLS for applications"]
  N4["19.4 Key lifecycle"]
  N5["Synthesis"]
  N0 --> N1 --> N2 --> N3 --> N4 --> N5 --> Q["EX055"]
[Learning outcomes]
    |
    v
[19.1 Keys and certificates]
    |
    v
[19.2 IPsec and IKEv2]
    |
    v
[19.3 TLS for applications]
    |
    v
[19.4 Key lifecycle]
    |
    v
[Synthesis]
    |
    v
[Worked example] --> [Exercise EX055]

Learning outcomes

You will (1) explain certificates and keys for network devices; (2) choose VPN authentication; (3) apply TLS guidance.

19.1 Keys and certificates

Network devices prove their identity with cryptographic keys. A certificate binds a public key to a name and is signed by a certificate authority. For the council's VPN between offices, each firewall gets a certificate from the council's internal authority. This is stronger than shared passwords, which are often reused, rarely changed and hard to revoke for a single device. If one firewall is stolen, its certificate is revoked without affecting the others.

Each certificate's owner and expiry date should be recorded in an inventory.

19.2 IPsec and IKEv2

Site-to-site tunnels use IPsec (RFC 4301) with keys negotiated by IKEv2 (RFC 7296). NIST SP 800-77 Rev. 1 recommends IKEv2, certificate authentication, and modern algorithms such as AES-GCM with strong Diffie-Hellman groups. Kofi follows these recommendations and records the chosen parameters in the design, so that future reviewers can compare them with updated guidance rather than guessing what was configured.

IKEv2 negotiates keys and algorithms between the two ends and re-keys periodically, so a key exposed later reveals limited traffic. Engineers choose current algorithm suites and authenticate peers with certificates rather than shared secrets where possible.

19.3 TLS for applications

Within zones, applications such as the case management system use TLS. NIST SP 800-52 Rev. 2 recommends TLS 1.2 or 1.3 with specific cipher suites, and RFC 8446 defines TLS 1.3. Kofi checks the council's main web applications' TLS settings using reports from the council's web team and lists two older systems still allowing outdated protocol versions for remediation.

TLS protects individual application connections such as web and mail. Engineers require current protocol versions, disable outdated ones, and ensure clients validate server certificates, since encryption without validation does not confirm who is on the other end.

19.4 Key lifecycle

Keys and certificates expire and must be renewed. Expired certificates cause outages that look like network failures. Kofi adds certificate expiry dates to the monitoring and sets alerts sixty days before expiry, and documents how a certificate is revoked if a device is lost.

Keys pass through generation, distribution, use, rotation and destruction. Each stage needs a defined owner and procedure. Rotation limits the exposure if a key leaks, and an inventory with expiry dates prevents outages caused by certificates silently expiring. Revocation must also be planned, so a compromised key can be withdrawn quickly.

Worked example

The VPN profile specifies IKEv2, certificate authentication, AES-256-GCM and a 3072-bit or elliptic-curve Diffie-Hellman group, with lifetimes recorded in the design.

Synthetic case. Parameters are illustrative and synthetic.

Errors and limits

Strong algorithms do not help if private keys are stored unprotected on shared drives.

Exercises

Synthesis

Certificates, IKEv2 and current TLS guidance give the design strong, manageable cryptography.

Continue studying — chapter 19 of 50

← Chapter 18 (draft) · Course chapter index · Chapter 20 (draft) →

Worked answers

EX055. Each device can be revoked individually, and there is no shared password to leak or reuse.

EX056. NIST SP 800-77 Rev. 1 with RFC 7296 for IPsec; SP 800-52 Rev. 2 with RFC 8446 for TLS.

EX057. It leaves time to renew and deploy before the expiry causes an outage.