# What is an HTTPS proxy, and what does it encrypt?

> An HTTPS proxy encrypts the hop to the gateway, so your network cannot read the sites you connect to or your proxy password. Sites see no difference.

Source: https://mosaicbrowser.com/blog/what-an-https-proxy-adds

## What an HTTPS proxy adds over an HTTP one

An HTTPS proxy encrypts the hop to the gateway, so your network cannot read the sites you connect to or your proxy password. Sites see no difference.

![An HTTPS proxy encrypts the first hop, and only that](https://mosaicbrowser.com/covers/what-an-https-proxy-adds.webp)

An HTTPS proxy is a proxy you talk to over TLS. The browser encrypts the hop from your computer to the gateway before it sends a single proxy command, so your own network can no longer read which sites you connect to or the proxy password you send. The site at the far end sees no difference at all: same IP address, same browser, same TLS handshake.

That makes it a privacy upgrade for the first hop and nothing else. Whether you need one depends on who can see that hop.

## What an HTTP proxy sends in the clear

With an ordinary HTTP proxy, the browser opens a plain TCP connection to the gateway. For an `https://` site it then sends a CONNECT request, defined in RFC 9110, asking the proxy to open a connection to the site:

```
CONNECT shop.example:443 HTTP/1.1
Host: shop.example:443
Proxy-Authorization: Basic dXNlcjpwYXNz

```

Only after the proxy answers `200` does the browser start TLS with the site, inside that connection. So the page, the cookies and the form fields are encrypted end to end. The three lines above are not. Anyone on the path between you and the gateway, the café Wi-Fi, the office network, your own ISP, can read the hostname you asked for and the credential. `dXNlcjpwYXNz` is Base64 for `user:pass`, which is an encoding anybody can reverse in one command.

For a plain `http://` site it is worse: the whole request, path and headers included, goes to the proxy unencrypted, because there is no TLS anywhere in the chain.

SOCKS5 is no better on this hop. Its username and password exchange (RFC 1929) is also sent in the clear.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: A new IP for every profile](https://mosaicbrowser.com/features/proxy-providers)

## What the HTTPS proxy adds

With an HTTPS proxy the order changes. The browser first opens TLS to the gateway, checks the gateway's certificate, and only then sends CONNECT and the credential, inside that encrypted channel. The connection to the site then runs inside it, so the site's TLS sits inside the proxy's TLS.

From your network, what is left visible is:

- the gateway's address, and its hostname in the TLS handshake (SNI)
- how much data goes each way, and when

The target hostname and the password are gone from view. That is the whole gain, and on an untrusted network it is a real one: a leaked proxy credential is someone else browsing on your bill, from your IP.

## What it does not change

Everything past the gateway is the same as before. The proxy still decrypts its own layer, so it still sees the hostnames you connect to, the timing and the volume, just as any proxy does ([what your proxy provider can and cannot see](https://mosaicbrowser.com/blog/what-a-proxy-provider-can-see) goes through that list). It cannot read inside the site's TLS either way.

The site sees the IP address and the browser's own ClientHello, because that handshake passes through the proxy untouched. An HTTPS proxy does not change your TLS fingerprint, your headers or your location. A site cannot tell which kind of proxy you used, and the "elite" and "anonymous" labels sellers attach to proxies are about something else entirely ([proxy anonymity levels](https://mosaicbrowser.com/blog/proxy-anonymity-levels-and-https)).

## "HTTPS proxy" on a seller's page often means something else

Many proxy listings say "HTTP/HTTPS" and mean that the proxy can carry HTTPS sites through CONNECT. That is an ordinary HTTP proxy. A gateway that really accepts TLS on its own port is less common, and the seller's documentation usually says so explicitly, often with a separate port.

The two are not interchangeable. Set a plain HTTP gateway to `https` and the TLS handshake fails at once, because the gateway answers in plain text. Set a TLS gateway to `http` and it gets bytes it does not expect. If a proxy works as one type and not the other, the type is the first thing to change. A proxy that answers plain requests and refuses CONNECT is a different fault ([a proxy that answers HTTP and refuses CONNECT](https://mosaicbrowser.com/blog/proxy-http-works-https-fails)).

Chromium accepts both. Its `--proxy-server` switch takes an `https://` scheme for a proxy reached over TLS, and a PAC file can say `HTTPS host:port`. What the switch cannot carry is a username and password.

## How Mosaic connects to an HTTPS proxy

A proxy in Mosaic is HTTP, HTTPS, SOCKS5 or SOCKS4, and for a profile with credentials, or with DNS kept on the proxy (the default), the browser does not talk to the gateway itself. It talks to Mosaic on `127.0.0.1`, which logs in to the proxy for Chrome, on your computer, adding the credential on the way out. That hop is plain HTTP, and it never leaves the computer.

For an `https` proxy, Mosaic opens TLS to the gateway with the gateway's own hostname as the server name, and sends CONNECT and the `Proxy-Authorization` header only once that channel is up. So the hop that crosses your network is encrypted, the password never appears on it, and the site's own TLS still runs end to end inside. That part of Mosaic is a standard TLS client, so a gateway whose certificate does not check out is refused, not trusted quietly.

Every proxy is checked before a profile opens, and the check goes through the same login code the browser will use, so a type set wrong shows up as a failed check instead of a browser that will not load pages. The full list of what to test before trusting an account to an address is in [how to check a proxy before you use it](https://mosaicbrowser.com/guides/how-to-check-a-proxy-before-you-use-it).

## Questions

### What is an HTTPS proxy?

A proxy you reach over TLS. The browser opens an encrypted connection to the proxy itself before it says anything, so the request it sends the proxy, including which site to connect to and the proxy password, travels encrypted from your computer to the gateway.

### Is an HTTPS proxy the same as a proxy that supports HTTPS sites?

No, and seller listings often mix them up. Almost every HTTP proxy can carry HTTPS sites through a CONNECT request. An HTTPS proxy is one where the connection to the proxy is encrypted as well. Ask the seller which one they mean, or try both settings.

### Does an HTTPS proxy hide anything from the website I visit?

No. The site sees the proxy's IP and the browser's own TLS connection either way. The extra encryption ends at the gateway, before the traffic reaches the site.

### Is the proxy password safe with an HTTP proxy?

It is sent in a Proxy-Authorization header as Base64, which is an encoding, not encryption. Anyone who can read the network between you and the gateway can decode it. An HTTPS proxy, a VPN to the gateway, or an address allowlist instead of a password avoids that.

## Related

[A proxy that answers HTTP and refuses CONNECT](https://mosaicbrowser.com/blog/proxy-http-works-https-fails): A proxy that works for HTTP but not HTTPS is refusing CONNECT, the request every HTTPS page needs. A check that fetches a plain-HTTP page cannot see it.

[Elite, anonymous, transparent: proxy levels mean little on HTTPS](https://mosaicbrowser.com/blog/proxy-anonymity-levels-and-https): Elite vs anonymous proxy is about X-Forwarded-For and Via on plain HTTP. Through a CONNECT connection to an HTTPS site, a proxy cannot add a header at all.

[What your proxy provider can and cannot see](https://mosaicbrowser.com/blog/what-a-proxy-provider-can-see): Over HTTPS a proxy provider sees each hostname, port, time and byte count, never the pages or passwords. Over plain HTTP it sees everything you send.

[socks5 and socks5h: where Chrome resolves the name](https://mosaicbrowser.com/blog/socks5-and-socks5h-in-chrome): In curl, socks5h sends the hostname to the proxy and socks5 resolves it locally. Chrome's socks5 already sends the name; the leak is elsewhere.

[How to check a proxy before you use it](https://mosaicbrowser.com/guides/how-to-check-a-proxy-before-you-use-it): Check that a proxy answers and connects, where its IP really is, whether the address is residential or blocklisted, and that the browser stays behind it.







[Checking your local ads are running without wrecking the stats](https://mosaicbrowser.com/blog/local-ads-showing-check): Searching for your own ad adds impressions with no clicks, and Google may stop showing it to you. Use Ad Preview first, then a browser in the target city.

## Mosaic, on your own computer

The browser this blog is about: its own Chromium, fingerprints from real machines and a proxy IP per profile. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
