Firewalls and VPNs lab 9 of 16
Certificate authentication - an OpenSSL CA for IOS and vSRX
Replace pre-shared keys with certificates. Run a small certificate authority with OpenSSL, load an identity certificate onto a Cisco IOS router and a Juniper vSRX, and bring up IKEv2 with RSA signatures and FQDN identities that each side checks against the other's certificate.
Run this lab
It needs Lite: its 5 nodes are set to 6 vCPU and 6,656 MB in total. That fits the free demo too.
In your workspace: Shared, then Firewalls and VPNs multi-vendor guided labs, then 09 - Certificate authentication - an OpenSSL CA for IOS and vSRX
- Level
- Advanced
- Time
- About 100 minutes
- Nodes need
- 6 vCPU, 6,656 MB
- Smallest plan
- Lite
The scenario
Ashcombe Veterinary Group has outgrown shared keys: twenty clinics, one key each, and nobody knows who has seen them. It is moving its VPNs to certificates. You will pilot it between HQ (a Cisco router) and one clinic (a Juniper vSRX), with a small certificate authority (CA) that you run yourself with OpenSSL.
| Device | Interface | Address | Notes |
|---|---|---|---|
| ISP | Gi0/0 / Gi0/1 / Gi0/2 | 203.0.113.1/30 / 198.51.100.1/30 / 192.0.2.1/24 | |
| CA | eth0 | 192.0.2.50/24 | Reachable from both sites over the internet |
| HQ | Gi0/0 / Lo0 / Tunnel0 | 203.0.113.2/30 / 10.1.0.1/24 / 172.16.9.1/30 | Identity hq.example |
| SRX-CL | ge-0/0/0 / ge-0/0/1 (zone trust) / st0.0 | 198.51.100.2/30 / 10.2.0.1/24 / 172.16.9.2/30 | Identity srx.example |
| CL-PC | Gi0/0 | 10.2.0.10/24 | Clinic workstation |
| Setting | Value |
|---|---|
| CA | LAB-CA, RSA 2048, SHA-256, valid 10 years |
| Identity certificates | RSA 2048, SHA-256, subject CN=hq.example / CN=srx.example, the same name as a DNS subject alternative name |
| IKE SA | IKEv2, RSA signatures, AES-256-CBC, SHA-256, DH group 20 |
| IPsec SA | ESP AES-256-CBC, HMAC-SHA-256-128, PFS group 20; route-based on both ends |
What you’ll practise
- Create a CA and issue identity certificates with OpenSSL, with the right extensions and subject alternative names
- Import a PKCS#12 bundle into an IOS trustpoint and turn off revocation checking where no CRL exists
- Load a CA certificate and a local certificate into a vSRX CA profile
- Configure IKEv2 RSA-signature authentication with FQDN identities on both vendors
- Read certificates and IKE SAs: show crypto pki certificates, show crypto ikev2 sa detail, show security pki local-certificate
- Explain why certificates scale better than pre-shared keys, and what a production PKI adds
The tasks
- Run the CA
- Certificates on HQ
- Certificates on SRX-CL
- IKEv2 with RSA signatures
The Lab Tasks pane has the scenario, these tasks, the checks to run, hints and the full solution.
Topology and devices
The network as it opens in EVE-NG, drawn from the lab’s own canvas, and the image each node runs.
Every link, as text
- ISP
Gi0/0to HQGi0/0 - ISP
Gi0/1to SRX-CLge-0/0/0 - ISP
Gi0/2to CAeth0 - SRX-CL
ge-0/0/1to CL-PCGi0/0
| Node | Device | Image in Add Node | Set to |
|---|---|---|---|
| ISP | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| CA | EVE-NG GUI server (Docker) | eve-gui-server:latest | 1 vCPU, 1,024 MB |
| HQ | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
| SRX-CL | Juniper vSRX NextGen template | vsrxng-23.4R2-S3.9 | 2 vCPU, 4,096 MB |
| CL-PC | Cisco IOSv | vios-adventerprisek9-m.spa.159-3.m9 | 1 vCPU, 512 MB |
How to open this lab
Sign in to your workspace at
lab.cloudlabbox.com.In File Manager, open Shared, then the folder
Firewalls and VPNs multi-vendor guided labs.Open
09 - Certificate authentication - an OpenSSL CA for IOS and vSRXand start its nodes, then open Lab Tasks for the scenario and the steps.
The lab is read-only. You can start the nodes and configure the devices, but changes to the topology can’t be saved. To change it, rebuild it in your own folder.
More Firewalls and VPNs labs
Related labs in other courses
CloudLabBox is independent of Check Point, Cisco, CompTIA, Fortinet, Juniper Networks, MikroTik, Netgate and Palo Alto Networks. The lab follows exam topics and isn’t vendor training material; vendor names identify the exams and the images in the workspace.