Skip to content

What TLS adds

Module
Everyday Application Traffic
Difficulty
Easy
Updated
Tested on
Ubuntu 24.04.5 LTS, netlab 1.2, GNU Bash 5.2.21
On this page

Send the same lab sign-in again and add one letter to the scheme. You still receive the same answer. This time, compare what your client can read with what the router can read.

Finish Reading traffic that is not encrypted. Keep netlab 1.2 in DNS mode. Have one terminal for router and one for laptop.

TLS, short for Transport Layer Security, protects messages that two programs exchange. HTTPS is HTTP carried over TLS. The scheme https selects that protection and uses port 443 by default.

In terminal 1, save the traffic on router:eth1 again, this time to secure.pcap with the filter port 443. In terminal 2, send the same fields from laptop using https://. Pass --cacert /usr/local/share/netlab/lab-ca.crt to use the lab’s certificate authority file. The section below explains what that file is. Stop the listener after the answer.

Start and stop the listener
learner@rootvolt:~$ netlab shell router[sudo] password for learner: learner@router:~$ sudo tcpdump -n -i eth1 -w secure.pcap port 443[sudo] password for learner: tcpdump: listening on eth1, link-type EN10MB (Ethernet), snapshot length 262144 bytes^C17 packets captured
17 packets received by filter
0 packets dropped by kernellearner@router:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. In terminal 1 on router, start the listener and stop it after the sign-in.
Steps (14)
  1. Type netlab shell router
  2. Press Enter
  3. Output: [sudo] password for learner:
  4. Type the password (the terminal shows nothing)
  5. Press Enter
  6. Type sudo tcpdump -n -i eth1 -w secure.pcap port 443
  7. Press Enter
  8. Output: [sudo] password for learner:
  9. Type the password (the terminal shows nothing)
  10. Press Enter
  11. Output: tcpdump: listening on eth1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
  12. Submit the form in terminal 2, then return and stop the listener.
  13. Press Ctrl + C
  14. Output: 17 packets captured 17 packets received by filter 0 packets dropped by kernel
Submit the lab form over HTTPS
learner@laptop:~$ curl -sS -d 'user=visitor&password=not-a-secret' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/signin<!doctype html>
<html lang="en"><head><meta charset="utf-8"><title>Signed in</title></head>
<body><p>Signed in as visitor.</p></body></html>learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Terminal 2 submits the same form to the HTTPS address.
Steps (3)
  1. Type curl -sS -d 'user=visitor&password=not-a-secret' --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/signin
  2. Press Enter
  3. Output: <!doctype html> <html lang="en"><head><meta charset="utf-8"><title>Signed in</title></head> <body><p>Signed in as visitor.</p></body></html>

Read the saved bytes as text with tcpdump -A. With grep -c, count the lines that contain the password. Compare the result with the plain HTTP capture, where the full password was readable on the router.

Search the saved traffic for the form password
learner@router:~$ tcpdump -n -A -r secure.pcap | grep -c not-a-secretreading from file secure.pcap, link-type EN10MB (Ethernet), snapshot length 262144
0learner@router:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. The saved HTTPS packet text contains zero matches for the password.
Steps (3)
  1. Type tcpdump -n -A -r secure.pcap | grep -c not-a-secret
  2. Press Enter
  3. Output: reading from file secure.pcap, link-type EN10MB (Ethernet), snapshot length 262144 0

Predict. Over HTTPS, can the router still tell which site laptop is visiting?

Read the same file with tcpdump -n -r secure.pcap. The TCP rows still show addresses, ports, times and lengths. Open it in tshark to read the description of the first TLS message.

Read the HTTPS packet addresses, ports, times and lengths
learner@router:~$ tcpdump -n -r secure.pcapreading from file secure.pcap, link-type EN10MB (Ethernet), snapshot length 262144
17:01:07.197958 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [S], seq 2173659955, win 64240, options [mss 1460,sackOK,TS val 1448282031 ecr 0,nop,wscale 10], length 0
17:01:07.197978 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [S.], seq 398145108, ack 2173659956, win 65160, options [mss 1460,sackOK,TS val 1823980666 ecr 1448282031,nop,wscale 10], length 0
17:01:07.197987 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1, win 63, options [nop,nop,TS val 1448282031 ecr 1823980666], length 0
17:01:07.198998 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 1:518, ack 1, win 63, options [nop,nop,TS val 1448282032 ecr 1823980666], length 517
17:01:07.199030 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [.], ack 518, win 64, options [nop,nop,TS val 1823980667 ecr 1448282032], length 0
17:01:07.200090 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1:1398, ack 518, win 64, options [nop,nop,TS val 1823980668 ecr 1448282032], length 1397
17:01:07.200134 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1398, win 66, options [nop,nop,TS val 1448282033 ecr 1823980668], length 0
17:01:07.200674 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 518:598, ack 1398, win 66, options [nop,nop,TS val 1448282034 ecr 1823980668], length 80
17:01:07.200752 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 598:805, ack 1398, win 66, options [nop,nop,TS val 1448282034 ecr 1823980668], length 207
17:01:07.200798 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1398:1653, ack 805, win 64, options [nop,nop,TS val 1823980669 ecr 1448282034], length 255
17:01:07.244726 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1653, win 69, options [nop,nop,TS val 1448282078 ecr 1823980669], length 0
17:01:07.244780 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1653:2258, ack 805, win 64, options [nop,nop,TS val 1823980713 ecr 1448282078], length 605
17:01:07.244818 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0
17:01:07.245107 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 805:829, ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 24
17:01:07.245252 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [F.], seq 829, ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0
17:01:07.245425 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [F.], seq 2258, ack 830, win 64, options [nop,nop,TS val 1823980713 ecr 1448282078], length 0
17:01:07.245500 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 2259, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0learner@router:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the packet addresses, ports, times and lengths on router.
Steps (3)
  1. Type tcpdump -n -r secure.pcap
  2. Press Enter
  3. Output: reading from file secure.pcap, link-type EN10MB (Ethernet), snapshot length 262144 17:01:07.197958 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [S], seq 2173659955, win 64240, options [mss 1460,sackOK,TS val 1448282031 ecr 0,nop,wscale 10], length 0 17:01:07.197978 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [S.], seq 398145108, ack 2173659956, win 65160, options [mss 1460,sackOK,TS val 1823980666 ecr 1448282031,nop,wscale 10], length 0 17:01:07.197987 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1, win 63, options [nop,nop,TS val 1448282031 ecr 1823980666], length 0 17:01:07.198998 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 1:518, ack 1, win 63, options [nop,nop,TS val 1448282032 ecr 1823980666], length 517 17:01:07.199030 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [.], ack 518, win 64, options [nop,nop,TS val 1823980667 ecr 1448282032], length 0 17:01:07.200090 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1:1398, ack 518, win 64, options [nop,nop,TS val 1823980668 ecr 1448282032], length 1397 17:01:07.200134 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1398, win 66, options [nop,nop,TS val 1448282033 ecr 1823980668], length 0 17:01:07.200674 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 518:598, ack 1398, win 66, options [nop,nop,TS val 1448282034 ecr 1823980668], length 80 17:01:07.200752 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 598:805, ack 1398, win 66, options [nop,nop,TS val 1448282034 ecr 1823980668], length 207 17:01:07.200798 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1398:1653, ack 805, win 64, options [nop,nop,TS val 1823980669 ecr 1448282034], length 255 17:01:07.244726 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 1653, win 69, options [nop,nop,TS val 1448282078 ecr 1823980669], length 0 17:01:07.244780 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [P.], seq 1653:2258, ack 805, win 64, options [nop,nop,TS val 1823980713 ecr 1448282078], length 605 17:01:07.244818 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0 17:01:07.245107 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [P.], seq 805:829, ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 24 17:01:07.245252 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [F.], seq 829, ack 2258, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0 17:01:07.245425 IP 10.77.20.80.443 > 10.77.10.10.40464: Flags [F.], seq 2258, ack 830, win 64, options [nop,nop,TS val 1823980713 ecr 1448282078], length 0 17:01:07.245500 IP 10.77.10.10.40464 > 10.77.20.80.443: Flags [.], ack 2259, win 72, options [nop,nop,TS val 1448282078 ecr 1823980713], length 0
Read the setup in tshark
learner@router:~$ tshark -r secure.pcap    1   0.000000  10.77.10.10 ? 10.77.20.80  TCP 74 40464 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1448282031 TSecr=0 WS=1024
    2   0.000020  10.77.20.80 ? 10.77.10.10  TCP 74 443 ? 40464 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=1823980666 TSecr=1448282031 WS=1024
    3   0.000029  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1448282031 TSecr=1823980666
    4   0.001040  10.77.10.10 ? 10.77.20.80  TLSv1 583 Client Hello (SNI=web.lab.test)
    5   0.001072  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 40464 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=1823980667 TSecr=1448282032
    6   0.002132  10.77.20.80 ? 10.77.10.10  TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data
    7   0.002176  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1448282033 TSecr=1823980668
    8   0.002716  10.77.10.10 ? 10.77.20.80  TLSv1.3 146 Change Cipher Spec, Application Data
    9   0.002794  10.77.10.10 ? 10.77.20.80  TLSv1.3 273 Application Data
   10   0.002840  10.77.20.80 ? 10.77.10.10  TLSv1.3 321 Application Data
   11   0.046768  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [ACK] Seq=805 Ack=1653 Win=70656 Len=0 TSval=1448282078 TSecr=1823980669
   12   0.046822  10.77.20.80 ? 10.77.10.10  TLSv1.3 671 Application Data, Application Data, Application Data, Application Data
   13   0.046860  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [ACK] Seq=805 Ack=2258 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713
   14   0.047149  10.77.10.10 ? 10.77.20.80  TLSv1.3 90 Application Data
   15   0.047294  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [FIN, ACK] Seq=829 Ack=2258 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713
   16   0.047467  10.77.20.80 ? 10.77.10.10  TCP 66 443 ? 40464 [FIN, ACK] Seq=2258 Ack=830 Win=65536 Len=0 TSval=1823980713 TSecr=1448282078
   17   0.047542  10.77.10.10 ? 10.77.20.80  TCP 66 40464 ? 443 [ACK] Seq=830 Ack=2259 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713learner@router:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Find the first TLS message after TCP opens.
Steps (3)
  1. Type tshark -r secure.pcap
  2. Press Enter
  3. Output: 1 0.000000 10.77.10.10 ? 10.77.20.80 TCP 74 40464 ? 443 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM TSval=1448282031 TSecr=0 WS=1024 2 0.000020 10.77.20.80 ? 10.77.10.10 TCP 74 443 ? 40464 [SYN, ACK] Seq=0 Ack=1 Win=65160 Len=0 MSS=1460 SACK_PERM TSval=1823980666 TSecr=1448282031 WS=1024 3 0.000029 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=1448282031 TSecr=1823980666 4 0.001040 10.77.10.10 ? 10.77.20.80 TLSv1 583 Client Hello (SNI=web.lab.test) 5 0.001072 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 40464 [ACK] Seq=1 Ack=518 Win=65536 Len=0 TSval=1823980667 TSecr=1448282032 6 0.002132 10.77.20.80 ? 10.77.10.10 TLSv1.3 1463 Server Hello, Change Cipher Spec, Application Data, Application Data, Application Data, Application Data 7 0.002176 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [ACK] Seq=518 Ack=1398 Win=67584 Len=0 TSval=1448282033 TSecr=1823980668 8 0.002716 10.77.10.10 ? 10.77.20.80 TLSv1.3 146 Change Cipher Spec, Application Data 9 0.002794 10.77.10.10 ? 10.77.20.80 TLSv1.3 273 Application Data 10 0.002840 10.77.20.80 ? 10.77.10.10 TLSv1.3 321 Application Data 11 0.046768 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [ACK] Seq=805 Ack=1653 Win=70656 Len=0 TSval=1448282078 TSecr=1823980669 12 0.046822 10.77.20.80 ? 10.77.10.10 TLSv1.3 671 Application Data, Application Data, Application Data, Application Data 13 0.046860 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [ACK] Seq=805 Ack=2258 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713 14 0.047149 10.77.10.10 ? 10.77.20.80 TLSv1.3 90 Application Data 15 0.047294 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [FIN, ACK] Seq=829 Ack=2258 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713 16 0.047467 10.77.20.80 ? 10.77.10.10 TCP 66 443 ? 40464 [FIN, ACK] Seq=2258 Ack=830 Win=65536 Len=0 TSval=1823980713 TSecr=1448282078 17 0.047542 10.77.10.10 ? 10.77.20.80 TCP 66 40464 ? 443 [ACK] Seq=830 Ack=2259 Win=73728 Len=0 TSval=1448282078 TSecr=1823980713
Check your answer

Yes. The saved row labeled Client Hello contains SNI=web.lab.test, the name of the site in the first message.

The router can still see what it needs to forward the packets. It can also record when they passed and how large they were. Your time, size and client port may differ. The closing rows have FIN flags.

Before the HTTP exchange, the server presents a certificate, a signed statement that binds a key to a name. A certificate authority is the issuer that signs such statements. Curl can display what it received because it is one end of the protected exchange.

The lab’s certificate authority file gives curl an issuer to trust for this request. The lab issuer is deliberately absent from the VM’s trusted list. A browser or operating system carries a list of trusted issuers for real sites.

Read the server certificate
learner@laptop:~$ curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/* Host web.lab.test:443 was resolved.
* IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80
* IPv4: 10.77.20.80
*   Trying 10.77.20.80:443...
* Connected to web.lab.test (10.77.20.80) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /usr/local/share/netlab/lab-ca.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=web.lab.test
*  start date: Dec  2 16:58:02 2026 GMT
*  expire date: Mar  6 16:58:02 2029 GMT
*  subjectAltName: host "web.lab.test" matched cert's "web.lab.test"
*  issuer: CN=RootVolt lab CA
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/1.x
> GET / HTTP/1.1
> Host: web.lab.test
> User-Agent: curl/8.5.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: netlab-web/1.0
< Date: Wed, 02 Dec 2026 17:00:26 GMT
< Content-type: text/html
< Content-Length: 271
< Last-Modified: Thu, 19 Nov 2026 00:00:00 GMT
< 
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>web.lab.test</title>
</head>
<body>
<h1>web.lab.test</h1>
<p>This page comes from the lab machine web.</p>
<p><a href="hello.txt">hello.txt</a> · <a href="signin.html">Sign in</a></p>
</body>
</html>
* Closing connection
* TLSv1.3 (IN), TLS alert, close notify (256):
* TLSv1.3 (OUT), TLS alert, close notify (256):learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the TLS version, certificate subject and issuer, and curl's verification result.
Steps (3)
  1. Type curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://web.lab.test/
  2. Press Enter
  3. Output: * Host web.lab.test:443 was resolved. * IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80 * IPv4: 10.77.20.80 * Trying 10.77.20.80:443... * Connected to web.lab.test (10.77.20.80) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /usr/local/share/netlab/lab-ca.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS * ALPN: server did not agree on a protocol. Uses default. * Server certificate: * subject: CN=web.lab.test * start date: Dec 2 16:58:02 2026 GMT * expire date: Mar 6 16:58:02 2029 GMT * subjectAltName: host "web.lab.test" matched cert's "web.lab.test" * issuer: CN=RootVolt lab CA * SSL certificate verify ok. * Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * using HTTP/1.x > GET / HTTP/1.1 > Host: web.lab.test > User-Agent: curl/8.5.0 > Accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Server: netlab-web/1.0 < Date: Wed, 02 Dec 2026 17:00:26 GMT < Content-type: text/html < Content-Length: 271 < Last-Modified: Thu, 19 Nov 2026 00:00:00 GMT < <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>web.lab.test</title> </head> <body> <h1>web.lab.test</h1> <p>This page comes from the lab machine web.</p> <p><a href="hello.txt">hello.txt</a> · <a href="signin.html">Sign in</a></p> </body> </html> * Closing connection * TLSv1.3 (IN), TLS alert, close notify (256): * TLSv1.3 (OUT), TLS alert, close notify (256):

The subject is CN=web.lab.test. The issuer is CN=RootVolt lab CA. Curl reports SSL certificate verify ok. because the certificate matches the name and was signed by the authority you told curl to trust. In the router’s TLS 1.3 capture, you can see setup traffic. The certificate is part of that setup, but you need the client output to read its details.

Check the error without the lab authority
learner@laptop:~$ curl -v https://web.lab.test/* Host web.lab.test:443 was resolved.
* IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80
* IPv4: 10.77.20.80
*   Trying 10.77.20.80:443...
* Connected to web.lab.test (10.77.20.80) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (OUT), TLS alert, unknown CA (560):
* SSL certificate problem: unable to get local issuer certificate
* Closing connection
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Without the lab authority, curl refuses the connection before sending the HTTP request.
Steps (3)
  1. Type curl -v https://web.lab.test/
  2. Press Enter
  3. Output: * Host web.lab.test:443 was resolved. * IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80 * IPv4: 10.77.20.80 * Trying 10.77.20.80:443... * Connected to web.lab.test (10.77.20.80) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /etc/ssl/certs/ca-certificates.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (OUT), TLS alert, unknown CA (560): * SSL certificate problem: unable to get local issuer certificate * Closing connection curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above.

Without that authority, curl reports SSL certificate problem: unable to get local issuer certificate. The line containing unknown CA reports the reason for the TLS alert.

Protected content through a router A TLS band connects laptop to web across router. Only laptop and web can read the path, headers, form fields and page. The router can read the addresses, ports, sizes, times and the site name in the first message. router can read Addresses, ports, sizes and times Site name in the first message TLS laptop router web Only laptop and web can read Path, headers, form fields and page
Protected content through a router A TLS band connects laptop to web across router. Only laptop and web can read the path, headers, form fields and page. The router can read the addresses, ports, sizes, times and the site name in the first message. router can read Addresses, ports, sizes and times Site name in the first message TLS laptop router web Only laptop and web can read Path, headers, form fields and page
Simplified model. Model of one protected exchange. The HTTP content stays protected as the packets cross router.

On router, read signin.pcap from the last lesson. It is still in the home directory. Compare what this read shows with the same read of the protected sign-in.

Read the plain HTTP packet details
learner@router:~$ tcpdump -n -r signin.pcapreading from file signin.pcap, link-type EN10MB (Ethernet), snapshot length 262144
16:59:49.086995 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [S], seq 432241947, win 64240, options [mss 1460,sackOK,TS val 3679287611 ecr 0,nop,wscale 10], length 0
16:59:49.087023 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [S.], seq 3316578209, ack 432241948, win 65160, options [mss 1460,sackOK,TS val 426385449 ecr 3679287611,nop,wscale 10], length 0
16:59:49.087033 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 1, win 63, options [nop,nop,TS val 3679287611 ecr 426385449], length 0
16:59:49.087071 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [P.], seq 1:186, ack 1, win 63, options [nop,nop,TS val 3679287611 ecr 426385449], length 185: HTTP: POST /signin HTTP/1.1
16:59:49.087076 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [.], ack 186, win 64, options [nop,nop,TS val 426385449 ecr 3679287611], length 0
16:59:49.087680 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [P.], seq 1:142, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287611], length 141: HTTP: HTTP/1.0 200 OK
16:59:49.087702 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 142, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0
16:59:49.087729 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [P.], seq 142:283, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 141: HTTP
16:59:49.087733 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 283, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0
16:59:49.087758 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [F.], seq 283, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 0
16:59:49.087859 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [F.], seq 186, ack 284, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0
16:59:49.087883 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [.], ack 187, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 0learner@router:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Compare the packet addresses, ports, times and lengths in the plain HTTP capture.
Steps (3)
  1. Type tcpdump -n -r signin.pcap
  2. Press Enter
  3. Output: reading from file signin.pcap, link-type EN10MB (Ethernet), snapshot length 262144 16:59:49.086995 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [S], seq 432241947, win 64240, options [mss 1460,sackOK,TS val 3679287611 ecr 0,nop,wscale 10], length 0 16:59:49.087023 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [S.], seq 3316578209, ack 432241948, win 65160, options [mss 1460,sackOK,TS val 426385449 ecr 3679287611,nop,wscale 10], length 0 16:59:49.087033 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 1, win 63, options [nop,nop,TS val 3679287611 ecr 426385449], length 0 16:59:49.087071 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [P.], seq 1:186, ack 1, win 63, options [nop,nop,TS val 3679287611 ecr 426385449], length 185: HTTP: POST /signin HTTP/1.1 16:59:49.087076 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [.], ack 186, win 64, options [nop,nop,TS val 426385449 ecr 3679287611], length 0 16:59:49.087680 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [P.], seq 1:142, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287611], length 141: HTTP: HTTP/1.0 200 OK 16:59:49.087702 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 142, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0 16:59:49.087729 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [P.], seq 142:283, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 141: HTTP 16:59:49.087733 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [.], ack 283, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0 16:59:49.087758 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [F.], seq 283, ack 186, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 0 16:59:49.087859 IP 10.77.10.10.55212 > 10.77.20.80.80: Flags [F.], seq 186, ack 284, win 63, options [nop,nop,TS val 3679287612 ecr 426385450], length 0 16:59:49.087883 IP 10.77.20.80.80 > 10.77.10.10.55212: Flags [.], ack 187, win 64, options [nop,nop,TS val 426385450 ecr 3679287612], length 0
Item Visible over HTTP Visible over HTTPS
Addresses, ports, sizes and times Yes Yes
Site name Host: header First TLS message
Certificate None exchanged Part of TLS setup. Curl shows the details at the endpoint.
Path, headers, form fields and page Readable Encrypted

TLS gives the three things missing in the plain exchange: secrecy, a check against changes, and proof of who the server is. The check binds the server to the name you asked for and protects the content on the way.

“HTTPS hides which site I visit.” The first TLS message in this capture carries the site name.

“The padlock means the site is honest.” The check establishes the name you reached. You still decide whether to trust what the site asks you to do.

Secure Remote Connectivity (Intermediate) explains how certificates are checked and how trust is built.

On laptop, request https://www.lab.test/hello.txt with the lab authority. Predict whether the name check can pass when the subject you read earlier says web.lab.test. Run the verbose request and read the name match and verification lines.

Solution

Curl reports that the alternate name matches. The same lab certificate covers both names.

Check the alternate name
learner@laptop:~$ curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://www.lab.test/hello.txt* Host www.lab.test:443 was resolved.
* IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80
* IPv4: 10.77.20.80
*   Trying 10.77.20.80:443...
* Connected to www.lab.test (10.77.20.80) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /usr/local/share/netlab/lab-ca.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS
* ALPN: server did not agree on a protocol. Uses default.
* Server certificate:
*  subject: CN=web.lab.test
*  start date: Dec  2 16:58:02 2026 GMT
*  expire date: Mar  6 16:58:02 2029 GMT
*  subjectAltName: host "www.lab.test" matched cert's "www.lab.test"
*  issuer: CN=RootVolt lab CA
*  SSL certificate verify ok.
*   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
*   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
* using HTTP/1.x
> GET /hello.txt HTTP/1.1
> Host: www.lab.test
> User-Agent: curl/8.5.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Server: netlab-web/1.0
< Date: Wed, 02 Dec 2026 17:00:27 GMT
< Content-type: text/plain
< Content-Length: 16
< Last-Modified: Thu, 19 Nov 2026 00:00:00 GMT
< 
Hello from web.
* Closing connection
* TLSv1.3 (IN), TLS alert, close notify (256):
* TLSv1.3 (OUT), TLS alert, close notify (256):learner@laptop:~$ 

Step-by-step replay of a verified session · Recorded on Ubuntu 24.04.5 LTS, networking lab (netlab 1.2), GNU Bash 5.2.21. Read the alternate name match and the successful response.
Steps (3)
  1. Type curl -v --cacert /usr/local/share/netlab/lab-ca.crt https://www.lab.test/hello.txt
  2. Press Enter
  3. Output: * Host www.lab.test:443 was resolved. * IPv6: fd85:b2a8:3761:20:77:20ff:fe00:80 * IPv4: 10.77.20.80 * Trying 10.77.20.80:443... * Connected to www.lab.test (10.77.20.80) port 443 * ALPN: curl offers h2,http/1.1 * TLSv1.3 (OUT), TLS handshake, Client hello (1): * CAfile: /usr/local/share/netlab/lab-ca.crt * CApath: /etc/ssl/certs * TLSv1.3 (IN), TLS handshake, Server hello (2): * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8): * TLSv1.3 (IN), TLS handshake, Certificate (11): * TLSv1.3 (IN), TLS handshake, CERT verify (15): * TLSv1.3 (IN), TLS handshake, Finished (20): * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1): * TLSv1.3 (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / RSASSA-PSS * ALPN: server did not agree on a protocol. Uses default. * Server certificate: * subject: CN=web.lab.test * start date: Dec 2 16:58:02 2026 GMT * expire date: Mar 6 16:58:02 2029 GMT * subjectAltName: host "www.lab.test" matched cert's "www.lab.test" * issuer: CN=RootVolt lab CA * SSL certificate verify ok. * Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption * using HTTP/1.x > GET /hello.txt HTTP/1.1 > Host: www.lab.test > User-Agent: curl/8.5.0 > Accept: */* > * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4): * old SSL session ID is stale, removing * HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Server: netlab-web/1.0 < Date: Wed, 02 Dec 2026 17:00:27 GMT < Content-type: text/plain < Content-Length: 16 < Last-Modified: Thu, 19 Nov 2026 00:00:00 GMT < Hello from web. * Closing connection * TLSv1.3 (IN), TLS alert, close notify (256): * TLSv1.3 (OUT), TLS alert, close notify (256):
  • Compare the form text at the client with the packet text on the router.
  • Use the TLS rows to find the visible name and packet details.
  • Check the certificate name, issuer and verification result at the client.

Next, From name to page follows all seven stations in one capture.