Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

How HTTPS Actually Works: TLS, Certificates, and Encryption

Analogy Imagine you're sitting in a coffee shop. You connect to the free Wi-Fi. You decide to log into your bank account. Your browser sends your username and…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
CVE & Threat-Kontext · 7 Min. Lesezeit
Quelle: dev.to
Rubrik: Secure Programming

Analogy



Imagine you're sitting in a coffee shop.



You connect to the free Wi-Fi.



You decide to log into your bank account.



Your browser sends your username and password over the network.



Now imagine every person connected to that same Wi-Fi can read everything you're sending.



Your password.



Your balance.



Your account number.



Terrifying.



Yet that's exactly how the early Internet worked.



There was no encryption.



No certificates.



No secure connections.



Just plain text traveling across the network.



HTTPS was invented to solve this problem.



But here's the fascinating part:



Your browser has never met your bank's server before.



So how do two complete strangers agree on a secret encryption key while an attacker is listening to every message?



Let's find out.



Before HTTPS



HTTP sends everything as plain text.



Imagine requesting a webpage.



GET /login HTTP/1.1

Host: bank.com



username=alice

password=myPassword123



Anyone who intercepts this packet can read it.



Wireshark.



Hackers.



Malicious Wi-Fi hotspots.



ISPs.



Nothing is hidden.



HTTP provides functionality.



It provides zero confidentiality.



Enter HTTPS



HTTPS is simply:



HTTP



+



TLS



Notice something important.



HTTP didn't change.



TLS wraps HTTP in encryption.



Think of TLS as an armored truck carrying ordinary letters.



The letters remain the same.



The transport becomes secure.



What Does HTTPS Actually Protect?



HTTPS provides three major guarantees.



1. Confidentiality



Nobody can read your data.



Even if someone captures every packet...



They see encrypted gibberish.



Instead of:



password=OpenSesame

They see:

8FA91B4D928AC17C3D...



2. Integrity



Imagine a hacker intercepts:

Transfer $100 and changes it to:



Transfer $10,000



TLS detects that the message was modified.



The connection immediately fails.



3. Authentication



How do you know you're actually talking to your bank?



Not a fake server pretending to be it?



This is where certificates enter the picture.



The Biggest Problem



Imagine I want to send you a locked box.



I lock it.



Now...



How do I safely send you the key?



If I send the key with the box...



Anyone can steal both.



This is exactly the problem HTTPS had to solve.



Symmetric Encryption



Symmetric encryption uses one secret key.



Key

↓

Encrypt

↓

Ciphertext

↓

Decrypt

↓

Same Key



Advantages:



Extremely fast

Perfect for large files

Efficient



Problem:



Both sides need the same secret key.

How do they agree on that key?

Asymmetric Encryption



Instead of one key...



There are two.

Public Key

Private Key



Anyone may know the public key.

Nobody should ever know the private key.



Think of it like a mailbox.

Anyone can drop letters inside.

Only the owner can open it.



Why Not Encrypt Everything with RSA?



RSA (or modern alternatives like Elliptic Curve Cryptography) is computationally expensive.



Encrypting an entire Netflix movie with asymmetric encryption would be painfully slow.



Instead HTTPS combines both worlds.

Fast symmetric encryption.

Safe asymmetric key exchange.



The best of both.



Meet TLS



TLS performs a handshake before any HTTP data is exchanged.



This handshake establishes trust.



Generates shared secrets.

Chooses encryption algorithms.

Verifies certificates.

Only after all of this...

Does HTTP begin.



Step 1 — Client Hello



Your browser starts.

Hello!



I support:

AES

ChaCha20

TLS 1.3



Random Number



Think of this as introducing yourself.



Step 2 — Server Hello



The server replies.



Great.



Let's use:



TLS 1.3



AES-256



Here's my certificate.



Now comes the interesting part.



Step 3 — Certificate



The certificate contains information like:



Domain



Public Key



Expiration Date



Certificate Authority



Digital Signature



Notice...



The server isn't saying:



"Trust me."



Instead it's saying:



"Someone you already trust verified me."



Certificate Authorities



Browsers already trust organizations like:



Let's Encrypt

DigiCert

GlobalSign

Sectigo



When a certificate is signed by one of these trusted authorities, the browser can verify that signature.



It's similar to a passport.

You don't personally know the passport holder.

You trust the government that issued it.

What If Someone Creates a Fake Certificate?

Suppose an attacker generates a fake certificate for:



bank.com



The browser checks the digital signature.

It doesn't match any trusted Certificate Authority.



Immediately:

Your connection is not private.

The browser refuses the connection

Key Exchange



Now the browser knows it's talking to the real server.



Both sides perform a key exchange (commonly using Elliptic Curve Diffie–Hellman Ephemeral (ECDHE) in TLS 1.3) to derive the same shared secret.



Here's the remarkable part:



Neither side ever sends the secret encryption key across the network.



They independently calculate the same shared key using exchanged public information and their own private values.



Even if someone captures every packet, they cannot derive the session key.



This is one of the cleverest ideas in modern cryptography.



Session Keys



Once both sides derive the shared secret...



RSA (or more accurately in modern TLS, the key exchange mechanism) has done its job.



From this point onward...



Everything uses symmetric encryption.



Usually:



AES-GCM

ChaCha20-Poly1305



Because they're much faster.



Why HTTPS Is Fast



Many developers assume HTTPS encrypts every message with RSA.



It doesn't.



RSA or ECDHE helps establish the secure session.



After that...



Symmetric encryption handles almost all application data.



This is why HTTPS is nearly as fast as HTTP on modern hardware.



What Happens Every Time You Visit a Website?



The flow looks like this:



Browser

↓

TCP Connection

↓

TLS Handshake

↓

Certificate Verification

↓

Key Exchange

↓

Shared Secret

↓

Encrypted HTTP

↓

Website Loads



Common Myths

"HTTPS encrypts the entire Internet."



No.



It encrypts the communication between your client and the server.



"HTTPS hides which website I'm visiting."



Not entirely.



Your ISP can usually see the destination IP address and some metadata, although modern technologies reduce what is exposed.



"The padlock means the website is safe."



No.



It only means the connection is encrypted and the certificate is valid.



A phishing website can also have HTTPS.



"HTTP is obsolete."



Not completely.



HTTP still exists.



HTTPS is simply HTTP running over TLS.



Real-World Examples



Uses HTTPS:



Online banking

GitHub

Gmail

Amazon

APIs

Payment systems



Without HTTPS:



Passwords

Cookies

Tokens

Credit card numbers



would all travel in plain text.



Interview Questions

a.Why does HTTPS need certificates?



To verify the server's identity and prevent attackers from impersonating legitimate websites.



b.Why use both symmetric and asymmetric encryption?



Asymmetric encryption (or key exchange) solves the problem of establishing trust and securely deriving a shared secret. Symmetric encryption is then used because it's much faster for encrypting the actual data.



c.Why is HTTPS built on TCP?



TLS requires reliable, ordered delivery during the handshake and while exchanging encrypted records. TCP provides those guarantees.



d.Does HTTPS stop hackers?



It protects data in transit between you and the server.



It does not protect against:



Weak passwords

SQL Injection

XSS

Malware on your computer

Social engineering



HTTPS solves one specific problem:



Protecting communication while it's traveling across the network.



Key Takeaways



Every time you visit an HTTPS website, your browser and the server perform a carefully orchestrated dance before a single web page is loaded. They agree on encryption algorithms, verify the server's identity through a trusted certificate, securely derive a shared secret without ever transmitting it, and then switch to fast symmetric encryption for the rest of the session.



The result is that even if someone intercepts every packet traveling across the network, they cannot read or modify the protected data without the session keys.



That small padlock in your browser represents decades of cryptographic research working together to make everyday activities—like online banking, shopping, email, and APIs—secure enough to use over an untrusted Internet.

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

🔍 CTI & Forensik

Cyber Threat Intelligence & Forensics

ATT&CK Navigator · IoC Radar · Exploit Evidence
MITRE ATT&CK Matrix Navigator
2 belegte Techniken
T1190TA0001 · Initial Access
Exploit Public-Facing Application
Mitigation: M1042 Network Segmentation & WAF Rule Enforcement
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 86%
Scan public-facing services with OpenVAS, sharpen WAF rules, shorten patch windows.
T1566TA0001 · Initial Access
Phishing
Mitigation: M1054 User Training & Email Gateway Filtering
Quelle: Kontext-Klassifikation des Artikeltextes · Konfidenz 75%
Run awareness training, review mail gateway filtering, verify SPF/DKIM/DMARC.
Initial Access
CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
4 Knoten · 3 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness

Related story clusters & sources (vector AI)

6 Cluster
32 sources
ZDI-26-1148: Autodesk AutoCAD DWG File Parsing Integer Overflow Remote Code Execution Vulnerability
ZDI: Published Advisories 15 hours ago
31 more sources
ZDI: Published Advisories15 hours agoZDI-26-1094: NVIDIA NeMo Framework nemo File Parsing Directory Traversal Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1109: Microsoft Windows EMF File Parsing NTLM Response Information Disclosure Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1087: Bosch Rexroth IndraWorks XML Print Settings File Parsing Deserialization Of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1089: Bosch Rexroth IndraWorks MTX IWZ File Parsing Deserialization of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1091: Bosch Rexroth IndraWorks MTX XIWP File Parsing Deserialization of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1093: Bosch Rexroth IndraWorks CTAPRJ.ZIP File Parsing Directory Traversal Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1130: Autodesk AutoCAD DXF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1086: Bosch Rexroth IndraWorks XIWP File Parsing Deserialization Of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1132: Autodesk AutoCAD DXF File Parsing _FldPtr Type Confusion Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1090: Bosch Rexroth IndraWorks MTX XIWP File Parsing Deserialization of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1134: Autodesk AutoCAD DWG File Data Link Exposed Dangerous Method Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1147: Autodesk AutoCAD DDS File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1136: Autodesk AutoCAD AcPal NTLM Response Information Disclosure Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1138: Autodesk AutoCAD AeciIb NTLM Response Information Disclosure Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1146: Autodesk AutoCAD DWG File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1145: Autodesk AutoCAD DWF File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1144: Autodesk AutoCAD DGN File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1142: Autodesk AutoCAD DXF File Parsing NTLM Response Information Disclosure Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1140: Autodesk AutoCAD IES File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1141: Autodesk AutoCAD DXF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1092: Bosch Rexroth IndraWorks MTX XIWP File Parsing Directory Traversal Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1088: Bosch Rexroth IndraWorks XIWP File Parsing Deserialization Of Untrusted Data Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1078: llama.cpp GGUF File Parsing MINICPM-V Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1071: llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1077: llama.cpp GGUF File Parsing HunyuanVL Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1076: llama.cpp Multimodal GGUF File Parsing Out-Of-Bounds Write Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1075: llama.cpp GGUF File Parsing set_swa_pattern Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1073: llama.cpp MTMD Multimodal GGUF File Parsing Out-Of-Bounds Read Denial-of-Service Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1074: llama.cpp GGUF File Parsing GEMMA4A Heap-based Buffer Overflow Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1072: llama.cpp GGUF File Parsing Integer Overflow Denial-of-Service Vulnerability VulDB Updates1 hour agoCVE-2026-120436 | Netpbm up to 10.86.50/11.02.29/11.15.07 JBIG File jbg_dec_merge_planes integer overflow (Nessus ID 385605)
13 sources
CVE-2026-92730 | LimeSurvey 7.0.14 CSV Import cross site scripting
VulDB Updates 1 hour ago
12 more sources
VulDB Updates1 hour agoCVE-2026-91775 | LimeSurvey 7.0.14 Administrative Interface cross site scripting VulDB Updates1 hour agoCVE-2026-129381 | Joomla! Project Joomla Extension up to 5.4.10/6.2.0 Install From Web cross-site request forgery (EUVD-2026-134293) VulDB Updates1 hour agoCVE-2026-127299 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 com_newsfeeds name cross site scripting (EUVD-2026-134290) VulDB Updates1 hour agoCVE-2026-127300 | Joomla! Project Joomla CMS Extension 4.3.0-5.4.10/6.0.0-6.2.0 com_guidedtours cross site scripting (EUVD-2026-134285) VulDB Updates1 hour agoCVE-2026-129389 | Joomla! Project Joomla Extension up to 3.8.3/5.4.10/6.0.0/6.2.0 Wrapper cross site scripting (EUVD-2026-134283) VulDB Updates2 hours agoCVE-2026-127298 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 com_contact name cross site scripting (EUVD-2026-134302) VulDB Updates2 hours agoCVE-2026-129368 | Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 Banner cross site scripting (EUVD-2026-134300) VulDB Updates2 hours agoCVE-2026-127304 | Joomla Extension 3.9.0-5.4.10/6.0.0-6.2.0 Custom Fields showon cross site scripting (EUVD-2026-134299) VulDB Updates2 hours agoCVE-2026-129365 | Joomla! Project Joomla Extension up to 2.5.10/5.4.10/6.0.0/6.2.0 com_installer cross site scripting (EUVD-2026-134296) VulDB Updates1 hour agoCVE-2022-4602 | Shoplazza LifeStyle 1.1 Review Flow /admin/api/theme-edit/ Title cross site scripting (EUVD-2022-51934) VulDB Updates1 hour agoCVE-2022-4601 | Shoplazza LifeStyle 1.1 Shipping/Member Discount/Icon /admin/api/theme-edit/ cross site scripting (EUVD-2022-51933) VulDB Updates1 hour agoCVE-2022-4605 | flatpress up to 1.2 cross site scripting (EUVD-2022-51937)
13 sources
CVE-2026-129373 | Joomla! Project Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 Password Reset session expiration (EUVD-2026-134294)
VulDB Updates 1 hour ago
12 more sources
VulDB Updates1 hour agoCVE-2026-129385 | Joomla! Project Joomla! Extension 4.0.0-5.4.10/6.0.0-6.2.0 Mail Template information disclosure (EUVD-2026-134295) VulDB Updates1 hour agoCVE-2026-123210 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_media input validation (EUVD-2026-134291) VulDB Updates1 hour agoCVE-2026-126045 | Joomla! Project Joomla Extension up to 1.6.0/5.4.10/6.0.0/6.2.0 Language Parameter language file inclusion (EUVD-2026-134289) VulDB Updates1 hour agoCVE-2026-129387 | Joomla! Project Joomla! CMS Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_menus privileges management (EUVD-2026-134288) VulDB Updates1 hour agoCVE-2026-127295 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 Webservice Endpoints permission (EUVD-2026-134286) VulDB Updates1 hour agoCVE-2026-129383 | Joomla! Project Joomla Extension 6.2.0 SMTP OAuth2 Settings information disclosure (EUVD-2026-134287) VulDB Updates1 hour agoCVE-2026-129382 | Joomla! Project Joomla Extension up to 5.4.10/6.2.0 com_media permission (EUVD-2026-134284) VulDB Updates1 hour agoCVE-2026-127297 | Joomla! Project Joomla 3.6.0-5.4.10/6.0.0-6.2.0 Formatted Text Logger race condition (EUVD-2026-134282) VulDB Updates1 hour agoCVE-2026-127296 | Joomla! Project Joomla CMS Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_config information disclosure (EUVD-2026-134281) VulDB Updates2 hours agoCVE-2026-129386 | Joomla! Project Joomla Extension 1.6.0-5.4.10/6.0.0-6.2.0 com_contact privileges management (EUVD-2026-134301) VulDB Updates2 hours agoCVE-2026-129388 | Joomla! Project Joomla! Extension 4.0.0-5.4.10/6.0.0-6.2.0 com_media path traversal (EUVD-2026-134298) VulDB Updates2 hours agoCVE-2026-123214 | Joomla! Project Joomla Extension 4.0.0-5.4.10/6.0.0-6.2.0 Web Installer missing authentication (EUVD-2026-134297)
11 sources
ZDI-26-1122: (Pwn2Own) Oracle Autonomous AI Database ORDS APEX SSO Exchange Token Authentication Bypass Vulnerability
ZDI: Published Advisories 15 hours ago
10 more sources
ZDI: Published Advisories15 hours agoZDI-26-1123: (Pwn2Own) Oracle Autonomous AI Database PL/SQL Gateway Authentication Bypass Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1124: (Pwn2Own) Oracle Autonomous AI Database APEX wwv_flow.show Missing Authorization Privilege Escalation Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1125: (Pwn2Own) Oracle Autonomous AI Database APEX Improper Input Validation Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1126: (Pwn2Own) Oracle Autonomous AI Database APEX Dynamic Execution Improper Authorization Privilege Escalation Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1127: (Pwn2Own) Oracle Autonomous AI Database Export Directory Exposure of Resource to Wrong Sphere Remote Code Execution Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1128: (Pwn2Own) Oracle Autonomous AI Database APEX Request Integrity Improper Verification of Cryptographic Signature Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1131: (Pwn2Own) Oracle Autonomous AI Database APEX Workspace Resolution Improper Handling of Exceptional Conditions Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1133: (Pwn2Own) Oracle Autonomous AI Database APEX Password Change Missing Authorization Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1137: (Pwn2Own) Oracle Autonomous AI Database ONNX Runtime Tree Ensemble Use-After-Free Information Disclosure Vulnerability ZDI: Published Advisories15 hours agoZDI-26-1139: (Pwn2Own) Oracle Autonomous AI Database ONNX Runtime GPT GreedySearch Type Confusion Remote Code Execution Vulnerability
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten How HTTPS Actually Works: TLS, Certificates, and Encryption

Thematisch verwandte Begriffe: HTTPS, Actually, Works, Certificates · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag