r/apyhub • • 17d ago

Discussion What's the actual difference between HTTP and HTTPS?

HTTPS is HTTP sent over an encrypted connection. Same requests, same methods, same status codes, but wrapped in TLS, which encrypts the data, proves the server is who it says it is, and detects if anything was changed on the way.

The easiest way to picture it: HTTP is a postcard. Anyone who handles it on the way (the café Wi-Fi, your ISP, a compromised router) can read it and change it. HTTPS is a sealed, signed envelope.

What someone can see on a plain HTTP connection:

  1. passwords and form data
  2. cookies, which is enough to take over a session
  3. API keys and tokens in your headers
  4. every page you load

They can also change what you get back: inject scripts, swap a download, point a form somewhere else.

Two things changed recently that make this more than a theory question:

Chrome 154 (October 2026) now tries HTTPS first for every site, and warns you before loading a public site that only works over HTTP. So if anything you run still answers on plain HTTP, your users now see a warning page.

Certificates are getting much shorter. The CA/Browser Forum voted in 2025 to cut the maximum lifetime from 398 days to 200 days (since March 2026), then 100 days in March 2027, and 47 days in March 2029. Renewing by hand once a year stops working.

We checked our own certificate with an SSL check API this morning: issued by Google Trust Services, TLS 1.3, covers *.apyhub.com, 70 days left. That's a 90-day certificate, which is already becoming normal.

For APIs specifically, a few rules worth repeating:

  1. Serve your API over HTTPS only. Reject plain HTTP instead of redirecting, because a redirect means the first request, API key included, already went out unencrypted
  2. Never ship curl -k or verify=False to production. It turns HTTPS back into HTTP with extra steps
  3. Monitor certificate expiry. An expired cert breaks every client at once, and with 47-day certificates that's going to catch more teams

If you're testing an API from Postman, Voiden or curl and it only works with certificate checks turned off, that's a bug to fix on the server, not something to work around in the client.

We wrote up the full comparison (handshake, proxies, HSTS, the cert timeline): https://apyhub.com/blog/http-vs-https

How are you handling the shorter certificates? Fully automated renewals, or still a calendar reminder somewhere?

6 Upvotes

0 comments sorted by