<mxfile host="app.diagrams.net" agent="network-lab-pkt generator">
  <diagram id="d1" name="HTTPS = HTTP inside TLS: identity first, then secret keys">
    <mxGraphModel dx="1360" dy="1240" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1360" pageHeight="1240" background="#FBFCFE" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <mxCell id="1" parent="0"/>
        <mxCell id="c2s0" value="" style="rounded=0;fillColor=#2F6FE0;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="0" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s1" value="" style="rounded=0;fillColor=#7C4DDB;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="272" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s2" value="" style="rounded=0;fillColor=#D63F8C;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="544" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s3" value="" style="rounded=0;fillColor=#E8890C;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="816" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c2s4" value="" style="rounded=0;fillColor=#1E9A63;strokeColor=none;" vertex="1" parent="1"><mxGeometry x="1088" y="0" width="273" height="8" as="geometry"/></mxCell>
        <mxCell id="c3" value="&lt;div style=&quot;font-size:32px;line-height:40px;font-weight:700;font-family:Helvetica;color:#1F2A44;&quot;&gt;HTTPS = HTTP inside TLS: identity first, then secret keys&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="28.0" width="1060.0" height="40" as="geometry"/></mxCell>
        <mxCell id="c4" value="&lt;div style=&quot;font-size:17px;line-height:24px;font-family:Helvetica;color:#5B6677;&quot;&gt;TLS proves the server is who it claims to be, agrees on session keys, then encrypts every HTTP request and response&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="72.0" width="1060.0" height="24" as="geometry"/></mxCell>
        <mxCell id="c5" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#FFFFFF;letter-spacing:1.2px;&quot;&gt;STAGE 11 · HTTP &amp;amp; TLS&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#3932A5;strokeWidth=2;fontColor=#FFFFFF;fillColor=#4F46E5;gradientColor=#443CC5;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=30.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1109.7" y="30.0" width="206.3" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c6" value="TLS 1.3 handshake · happens after TCP connects" style="swimlane;startSize=38;horizontal=1;rounded=1;arcSize=12;html=1;collapsible=0;fillColor=#7C4DDB;gradientColor=#6B42BC;swimlaneFillColor=#F1E9FE;strokeColor=#9B6CF0;strokeWidth=2.5;fontColor=#FFFFFF;fontStyle=1;fontSize=17;align=left;spacingLeft=14;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="44" y="130" width="770" height="560" as="geometry"/></mxCell>
        <mxCell id="c6t" value="TCP 443" style="text;html=1;align=right;verticalAlign=middle;fontColor=#FFFFFF;fontFamily=Courier New;fontSize=13;" vertex="1" parent="1"><mxGeometry x="514" y="130" width="282" height="38" as="geometry"/></mxCell>
        <mxCell id="c7" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;Browser&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;the client&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=2;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="72.0" y="190.0" width="200.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c8" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;Web server&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;example.com&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="588.0" y="190.0" width="200.0" height="64.0" as="geometry"/></mxCell>
        <mxCell id="c9" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="172.0" y="254.0" as="sourcePoint"/><mxPoint x="172.0" y="668.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c10" value="" style="html=1;strokeColor=#B8C0CC;strokeWidth=2;rounded=1;dashed=1;dashPattern=10 7;endArrow=none;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="688.0" y="254.0" as="sourcePoint"/><mxPoint x="688.0" y="668.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c11" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="172.0" y="330.0" as="sourcePoint"/><mxPoint x="688.0" y="330.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c12" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;ClientHello&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="371.8" y="305.0" width="116.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c13" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;TLS versions · cipher suites · key share · SNI=example.com&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="191.8" y="336.0" width="476.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c14" value="" style="html=1;strokeColor=#1E9A63;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="688.0" y="420.0" as="sourcePoint"/><mxPoint x="172.0" y="420.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c15" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;ServerHello + Certificate + key share + Finished&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="216.4" y="395.0" width="427.2" height="21" as="geometry"/></mxCell>
        <mxCell id="c16" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;picks cipher · sends certificate chain · proves it owns the key&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="172.3" y="426.0" width="515.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c17" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#4B2A9A;&quot;&gt;Client verifies&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;chain · name · dates · signature&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#9B6CF0;strokeWidth=2;fontColor=#4B2A9A;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="180.0" y="452.0" width="240.0" height="62.0" as="geometry"/></mxCell>
        <mxCell id="c18" value="" style="html=1;strokeColor=#2F6FE0;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;" edge="1" parent="1"><mxGeometry relative="1" as="geometry"><mxPoint x="172.0" y="560.0" as="sourcePoint"/><mxPoint x="688.0" y="560.0" as="targetPoint"/></mxGeometry></mxCell>
        <mxCell id="c19" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#1C3F94;&quot;&gt;Finished&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="384.4" y="535.0" width="91.2" height="21" as="geometry"/></mxCell>
        <mxCell id="c20" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;both sides now derive the same session keys&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="250.3" y="566.0" width="359.4" height="21" as="geometry"/></mxCell>
        <mxCell id="c21" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;HTTP over TLS — encrypted both ways&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#166F47;strokeWidth=2;fontColor=#FFFFFF;fillColor=#1E9A63;gradientColor=#1A8455;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=54.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="222.0" y="610.0" width="410.0" height="54.0" as="geometry"/></mxCell>
        <mxCell id="c22" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;1&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="47.0" y="315.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c23" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;2&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#166F47;strokeWidth=2;fontColor=#FFFFFF;fillColor=#1E9A63;gradientColor=#1A8455;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="47.0" y="405.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c24" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;3&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;ellipse;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="47.0" y="545.0" width="30.0" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c25" value="Why you can trust the certificate" style="swimlane;startSize=38;horizontal=1;rounded=1;arcSize=12;html=1;collapsible=0;fillColor=#4F46E5;gradientColor=#443CC5;swimlaneFillColor=#E9EAFE;strokeColor=#6366F1;strokeWidth=2.5;fontColor=#FFFFFF;fontStyle=1;fontSize=17;align=left;spacingLeft=14;fontFamily=Helvetica;" vertex="1" parent="1"><mxGeometry x="850" y="130" width="466" height="560" as="geometry"/></mxCell>
        <mxCell id="c26" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#8E1B1B;&quot;&gt;Root CA&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#AF5858;&quot;&gt;pre-installed in your OS/browser&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#EF5B5B;strokeWidth=2;fontColor=#8E1B1B;fillColor=#FDE8E8;gradientColor=#FBD1D1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="890.0" y="190.0" width="300.0" height="74.0" as="geometry"/></mxCell>
        <mxCell id="c27" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#7A4300;&quot;&gt;Intermediate CA&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#A27742;&quot;&gt;signed by the root&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#F5A524;strokeWidth=2;fontColor=#7A4300;fillColor=#FFF0DC;gradientColor=#FDE4BF;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="890.0" y="302.0" width="300.0" height="74.0" as="geometry"/></mxCell>
        <mxCell id="c28" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;example.com certificate&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#508D72;&quot;&gt;signed by the intermediate&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="890.0" y="414.0" width="300.0" height="74.0" as="geometry"/></mxCell>
        <mxCell id="c29" value="" style="html=1;strokeColor=#5B6677;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c26" target="c27"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c30" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#2F3846;&quot;&gt;signs&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1.5;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=26.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1043.0" y="270.0" width="62.0" height="26.0" as="geometry"/></mxCell>
        <mxCell id="c31" value="" style="html=1;strokeColor=#5B6677;strokeWidth=3.5;rounded=1;endArrow=block;endFill=1;startArrow=none;exitX=0.5;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="c27" target="c28"><mxGeometry relative="1" as="geometry"></mxGeometry></mxCell>
        <mxCell id="c32" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#2F3846;&quot;&gt;signs&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=1.5;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=26.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1043.0" y="382.0" width="62.0" height="26.0" as="geometry"/></mxCell>
        <mxCell id="c33" value="" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#1E9A63;strokeWidth=6;fontColor=#fff;fillColor=none;rounded=1;absoluteArcSize=1;arcSize=35.84;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1234.1" y="214.0" width="35.8" height="39.7" as="geometry"/></mxCell>
        <mxCell id="c34" value="" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#11603E;strokeWidth=1.5;fontColor=#fff;fillColor=#1E9A63;rounded=1;absoluteArcSize=1;arcSize=16;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1226.4" y="239.6" width="51.2" height="37.1" as="geometry"/></mxCell>
        <mxCell id="c35" value="" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#FFFFFF;strokeWidth=0.5;fontColor=#fff;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=6;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1248.2" y="251.1" width="7.7" height="11.5" as="geometry"/></mxCell>
        <mxCell id="c36" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#2B2D8F;&quot;&gt;Browser checks&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;✓ chain leads to a trusted root&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;✓ hostname matches the certificate&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;✓ not expired · not revoked · signature valid&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#6366F1;strokeWidth=2;fontColor=#2B2D8F;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=left;spacingLeft=20;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="870.0" y="540.0" width="426.0" height="128.0" as="geometry"/></mxCell>
        <mxCell id="c37" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#2B2D8F;letter-spacing:1.2px;&quot;&gt;ASYMMETRIC → SYMMETRIC: WHY THE SWITCH MID-HANDSHAKE&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="726.0" width="435.8" height="17" as="geometry"/></mxCell>
        <mxCell id="c38" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#4B2A9A;&quot;&gt;Asymmetric (key pair)&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;public key / private key&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;slow · used to prove identity&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;and agree on a shared secret&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#9B6CF0;strokeWidth=2;fontColor=#4B2A9A;fillColor=#F1E9FE;gradientColor=#E3D5FC;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="760.0" width="400.0" height="110.0" as="geometry"/></mxCell>
        <mxCell id="c39" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#2F3846;&quot;&gt;then&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#2F3846;&quot;&gt;→&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#8B95A5;strokeWidth=2;fontColor=#2F3846;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="480.0" y="760.0" width="140.0" height="110.0" as="geometry"/></mxCell>
        <mxCell id="c40" value="&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#11603E;&quot;&gt;Symmetric (one shared key)&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;AES / ChaCha20&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;fast · used to encrypt all the&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;actual HTTP traffic&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="656.0" y="760.0" width="400.0" height="110.0" as="geometry"/></mxCell>
        <mxCell id="c41" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#7A4300;&quot;&gt;HTTPS port&lt;/div&gt;&lt;div style=&quot;font-size:18px;line-height:26px;font-weight:700;font-family:Helvetica;color:#E8890C;&quot;&gt;443&lt;/div&gt;&lt;div style=&quot;font-size:13px;line-height:18px;font-weight:400;font-family:Helvetica;color:#5B6677;&quot;&gt;HTTP is 80&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#F5A524;strokeWidth=2;fontColor=#7A4300;fillColor=#FFFFFF;rounded=1;absoluteArcSize=1;arcSize=28;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1092.0" y="760.0" width="224.0" height="110.0" as="geometry"/></mxCell>
        <mxCell id="c42" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#2B2D8F;letter-spacing:1.2px;&quot;&gt;THE HTTP CONVERSATION INSIDE THE TUNNEL&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="906.0" width="332.9" height="17" as="geometry"/></mxCell>
        <mxCell id="c43" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#1C3F94;letter-spacing:1.2px;&quot;&gt;REQUEST&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#1C3F94;&quot;&gt;GET /index.html HTTP/1.1&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;Host: example.com&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;Accept: text/html&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;Cookie: session=…&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#4C8DF6;strokeWidth=2;fontColor=#1C3F94;fillColor=#E8F1FF;gradientColor=#CFE1FE;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=left;spacingLeft=20;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="940.0" width="500.0" height="140.0" as="geometry"/></mxCell>
        <mxCell id="c44" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#11603E;letter-spacing:1.2px;&quot;&gt;RESPONSE&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#11603E;&quot;&gt;HTTP/1.1 200 OK&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;Content-Type: text/html&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;Content-Length: 1256&lt;/div&gt;&lt;div style=&quot;font-size:14px;line-height:20px;font-weight:500;font-family:Courier New;color:#5B6677;&quot;&gt;&amp;lt;html&amp;gt;…&amp;lt;/html&amp;gt;&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#34B27B;strokeWidth=2;fontColor=#11603E;fillColor=#E4F7EC;gradientColor=#C8ECDA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=28;align=left;spacingLeft=20;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="580.0" y="940.0" width="500.0" height="140.0" as="geometry"/></mxCell>
        <mxCell id="c45" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;2xx  success&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#166F47;strokeWidth=2;fontColor=#FFFFFF;fillColor=#1E9A63;gradientColor=#1A8455;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1116.0" y="940.0" width="200.0" height="32.0" as="geometry"/></mxCell>
        <mxCell id="c46" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;3xx  redirect&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#2250A1;strokeWidth=2;fontColor=#FFFFFF;fillColor=#2F6FE0;gradientColor=#285FC1;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1116.0" y="976.0" width="200.0" height="32.0" as="geometry"/></mxCell>
        <mxCell id="c47" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;4xx  client error&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#A76309;strokeWidth=2;fontColor=#FFFFFF;fillColor=#E8890C;gradientColor=#C8760A;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1116.0" y="1012.0" width="200.0" height="32.0" as="geometry"/></mxCell>
        <mxCell id="c48" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#FFFFFF;&quot;&gt;5xx  server error&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#9C2D2D;strokeWidth=2;fontColor=#FFFFFF;fillColor=#D93F3F;gradientColor=#BB3636;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="1116.0" y="1048.0" width="200.0" height="32.0" as="geometry"/></mxCell>
        <mxCell id="c49" value="" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#E6C229;strokeWidth=2;fontColor=#5F4C00;fillColor=#FFF8D6;gradientColor=#FBEFBA;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=32;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="44.0" y="1134.0" width="1272.0" height="78.0" as="geometry"/></mxCell>
        <mxCell id="c50" value="&lt;div style=&quot;font-size:12px;line-height:17px;font-weight:700;font-family:Helvetica;color:#FFFFFF;letter-spacing:1.2px;&quot;&gt;REMEMBER&lt;/div&gt;" style="html=1;whiteSpace=wrap;overflow=hidden;strokeColor=#A76309;strokeWidth=2;fontColor=#FFFFFF;fillColor=#E8890C;gradientColor=#C8760A;gradientDirection=south;rounded=1;absoluteArcSize=1;arcSize=30.0;align=center;verticalAlign=middle;spacing=0;" vertex="1" parent="1"><mxGeometry x="60.0" y="1158.0" width="97.4" height="30.0" as="geometry"/></mxCell>
        <mxCell id="c51" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#5F4C00;&quot;&gt;TLS gives confidentiality, integrity and server identity. Certificates chain up to a root your device already trusts.&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="177.4" y="1149.0" width="1006.8" height="21" as="geometry"/></mxCell>
        <mxCell id="c52" value="&lt;div style=&quot;font-size:15px;line-height:21px;font-weight:700;font-family:Helvetica;color:#5F4C00;&quot;&gt;Methods: GET read · POST create · PUT replace · DELETE remove. Status class tells you who is at fault: 4xx you, 5xx server.&lt;/div&gt;" style="text;html=1;strokeColor=none;fillColor=none;align=left;verticalAlign=top;whiteSpace=nowrap;spacing=0;" vertex="1" parent="1"><mxGeometry x="177.4" y="1173.0" width="1057.2" height="21" as="geometry"/></mxCell>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
