%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% flowchart LR subgraph Era1["ยุค HTTP / Plain Traffic"] A["HTTPข้อมูลไม่เข้ารหัส"] end subgraph Era2["ยุค SSL/TLS / Encrypted Web"] B["TLS Handshakeตกลงกุญแจ"] C["Certificateยืนยันเว็บไซต์"] end subgraph Era3["ยุค HTTPS by Default"] D["Let's EncryptCertificate ฟรี"] E["HSTSบังคับ HTTPS"] end A --> B --> C --> D --> E
%%{init: {"theme": "base", "themeVariables": {"primaryColor": "#fabd2f", "primaryTextColor": "#282828", "primaryBorderColor": "#b57614", "lineColor": "#7c6f64", "secondaryColor": "#83a598", "tertiaryColor": "#b8bb26", "background": "#fbf1c7", "mainBkg": "#ebdbb2", "fontFamily": "Tahoma, sans-serif"}}}%% sequenceDiagram participant C as Client / Browser participant S as Server / Website C->>S: ClientHello S-->>C: ServerHello + Certificate C->>C: Verify Certificate C->>S: Key Exchange S-->>C: Secure Channel Ready C->>S: HTTPS Request S-->>C: Encrypted Response