Home > Blog > CompTIA CompTIA Network+ Certification Exam > HTTP vs HTTPS: A Network+ Guide to Web Security

HTTP vs HTTPS: A Network+ Guide to Web Security

Deep Dive Cert Sensei Team 2034-09-02 8 min read

HTTP (Hypertext Transfer Protocol) transmits data in plaintext over port 80, making it vulnerable to interception. HTTPS (HTTP Secure) encrypts communication using TLS/SSL over port 443, ensuring data confidentiality and integrity. For Network+ candidates, understanding this transition from plaintext to encrypted tunnels is critical for mastering the Network Security domain.

#CompTIA Network+ #HTTP vs HTTPS #Network Security #N10-009 #TLS/SSL

What is the fundamental difference between HTTP and HTTPS?

At its core, HTTP (Hypertext Transfer Protocol) is the foundation of data exchange on the web, but it has a massive flaw: it is a plaintext protocol. When you use HTTP, every packet sent between your browser and the server is visible to anyone sitting in the middle of the connection. In a real-world scenario, a malicious actor using a tool like Wireshark on a public Wi-Fi network can easily sniff your session cookies or login credentials because they aren't encrypted.

HTTPS (HTTP Secure) solves this by wrapping HTTP inside an encrypted tunnel. While HTTP defaults to TCP port 80, HTTPS uses TCP port 443. This isn't just a change in port number; it's a complete change in how the data is handled. By using encryption, HTTPS ensures that even if a packet is intercepted, the contents are unreadable gibberish to the attacker. For the N10-009 exam, you must be able to distinguish these two ports and understand that the 'S' stands for the security layer added to the transport.

How does TLS/SSL actually secure the connection?

You'll often hear the terms SSL (Secure Sockets Layer) and TLS (Transport Layer Security) used interchangeably, but for your certification, know that SSL is the deprecated predecessor and TLS is the modern standard. HTTPS uses TLS to provide three key security pillars: encryption, data integrity, and authentication. Encryption hides the data, integrity ensures the data hasn't been tampered with during transit, and authentication proves the server is who it claims to be via a digital certificate.

When your browser connects via HTTPS, it requests a certificate from the server. This certificate, signed by a trusted Certificate Authority (CA), contains the server's public key. Your browser uses this public key to negotiate a symmetric session key. This hybrid approach—using asymmetric encryption to exchange a symmetric key—allows for the high security of public-key infrastructure without the massive performance hit of encrypting every single packet with a slow asymmetric algorithm.

What happens during the secure connection handshake?

Before a single byte of encrypted web data is sent, a complex series of 'handshakes' must occur. First, the standard TCP 3-way handshake takes place: SYN, SYN-ACK, and ACK. This establishes the basic connection on port 443. Once the transport layer is ready, the TLS handshake begins. This is where the client and server agree on the version of TLS to use and the cipher suites (the set of algorithms) that will govern the encryption.

During this phase, the server sends its certificate, and the client verifies it against a list of trusted root CAs. If the certificate is valid, they generate a shared session key. Only after this multi-step process is complete does the browser send the actual HTTP request (like a GET or POST). If you're analyzing traffic in a lab, you'll see these handshake packets before the 'Application Data' packets appear. Understanding this sequence is vital for troubleshooting connectivity issues and passing the Network+ security objectives.

Does encryption create significant network overhead?

Yes, security comes with a cost. There are two primary types of overhead when moving from HTTP to HTTPS: computational and latency. Computationally, the CPU must work harder to encrypt and decrypt every packet. In the early days of the web, this was a major bottleneck, but modern processors include hardware acceleration (like AES-NI) that makes this overhead negligible for most users.

Latency is the more noticeable impact. The TLS handshake requires extra round-trips between the client and server before data can be sent. While a standard HTTP request is a simple request-response, HTTPS requires the TCP handshake PLUS the TLS handshake. To mitigate this, modern protocols like HTTP/2 and HTTP/3 (which uses QUIC over UDP) have been developed to reduce the number of round-trips required. When designing a network, you have to balance this slight increase in latency against the absolute necessity of protecting sensitive data from man-in-the-middle (MITM) attacks.

How can you master these concepts for the N10-009 exam?

Understanding the theory of HTTP vs HTTPS is one thing; applying it to a tricky exam question is another. CompTIA loves to test your ability to identify which protocol is being used based on port numbers or packet capture descriptions. You might see a scenario where a technician notices traffic on port 80 and is asked why it's a security risk. In these moments, you need to instantly associate port 80 with plaintext and port 443 with TLS encryption.

To truly lock this in, we recommend rigorous practice. At Cert Sensei, we provide 1,000 expert-curated CompTIA Network+ (N10-009) practice questions designed to mimic the actual exam environment. Instead of just giving you a right or wrong answer, we provide detailed expert reasoning for every single response. Combined with our domain-level analytics, you can see exactly where your gaps are—whether it's in Network Security or Transport protocols—and focus your study hours where they actually matter.

❓ Frequently Asked Questions

Does HTTPS protect my site from all types of cyber attacks?

No. HTTPS only encrypts the 'pipe' between the client and server. It prevents eavesdropping and MITM attacks, but it does not stop SQL injection, Cross-Site Scripting (XSS), or DDoS attacks. You still need a Web Application Firewall (WAF) and secure coding practices to fully protect a site.


Can I run HTTPS on a port other than 443?

Yes, you can technically configure a server to run HTTPS on any open port (e.g., 8443). However, 443 is the industry standard. If you use a non-standard port, users must explicitly specify the port in the URL (e.g., https://example.com:8443), otherwise the browser will default to 443 and the connection will fail.


Is SSL still used in modern networking?

Technically, no. SSL 2.0 and 3.0 are completely deprecated due to critical vulnerabilities like POODLE. We now use TLS (Transport Layer Security). However, the industry still uses the term 'SSL Certificate' as a shorthand, even though the certificates themselves are used by the TLS protocol.

More from CompTIA CompTIA Network+ Certification Exam

🧠

Test Your Knowledge

Ready to practice CompTIA Network+ Certification Exam? Put what you've learned to the test.

Try 10 Free Questions

⭐ 1,000 expert-curated questions available with Premium

Upgrade Premium
📖 Browse the Glossary

Join thousands of certification students

Sign Up Free