Skip to content
subcloakdocs

Capture traffic

SSL Proxying

Choose which HTTPS traffic Cloak Proxy decrypts, by app or host with wildcards; why sign-in pages and bot checks break, plus locked tunnels and pinned apps.

SSL Proxying decides which HTTPS traffic Cloak Proxy decrypts. Out of the box nothing is decrypted: HTTPS passes through as locked tunnels, and you see only the host and connection. Turn SSL Proxying on for an app or a host to read its requests and responses and use the debugging tools on them.

Decryption needs the Cloak Proxy root certificate to be trusted wherever the traffic comes from. On this Mac, click Install & Trust… in the banner, or see Root certificate. Phones, simulators and runtimes need it too: see Devices.

The buttons in the app bar and in the inspector stay dimmed until the certificate is trusted on this Mac.

Decrypting by app is the quickest way to see an app’s API calls: it covers every host the app connects to, including ones you don’t know about yet.

  1. In the sidebar under Apps, click the app.

  2. In the bar above the traffic list, click Enable SSL Proxying for All Requests from the app.

    The bar turns green and reads Decrypting HTTPS from every domain this app connects to. A green open lock appears next to the app in the sidebar.

  3. Use the app. Cloak Proxy closes the app’s open encrypted connections, so it reconnects and the new connections are decrypted.

You can also turn it on from:

  • the app’s right-click menu in the sidebar: Enable SSL Proxying for All Domains from the app,
  • a request’s right-click menu in the traffic list: Enable SSL Proxying for All Domains from the app,
  • a locked tunnel’s inspector: Enable all domains from the app.

To turn it off, click Disable SSL Proxying in the app bar, or choose Disable SSL Proxying for the app from either right-click menu.

Apps are matched by the name shown in the sidebar. Helper processes count as their parent app. Traffic from other devices is labeled with the device’s IP address, so decrypt it by host instead.

Decrypting a whole browser is rarely what you want. Sign-in pages and sites behind bot protection check that the connection comes from the browser itself: they look at its TLS and HTTP/2 fingerprint. When Cloak Proxy decrypts a connection, it talks to the server with its own fingerprint, so Google sign-in may say This browser or app may not be secure, and Cloudflare-protected sites answer 403 with a check that never passes.

To inspect web pages, use the Capturing Browser: a separate browser profile set up for Cloak Proxy, so your everyday browser keeps working as usual. If you already turned on SSL Proxying for your browser and a sign-in or site fails, turn it off for the browser (or for that host) and reload the page.

Since 0.4.2

From 0.4.2, when you turn on SSL Proxying for a browser (Chrome, Chromium, Edge, Brave, Firefox, Safari, Arc, Opera, Vivaldi and others), Cloak Proxy asks first: Decrypt all of the browser’s traffic?

Button What it does
Use the Capturing Browser Opens the Capturing Browser instead: the same browser (or the first one installed) with its own profile, already set up for Cloak Proxy. Your everyday browser keeps working as usual. If no supported browser is installed, the button reads Set Up a Capturing Browser… and opens the Capturing Browser setup page.
Decrypt Anyway Adds the browser to SSL Proxying as asked. Sign-in pages and bot checks still pass through encrypted unless you choose Decrypt anyway for them too.
Cancel Changes nothing.

In 0.4.2 on Linux, the same question appears when you choose Decrypt This App’s HTTPS for a browser. The MCP tool ssl_proxying and cloakctl run --ssl-app aren’t stopped: they add the browser and return or print the warning.

Decrypt by host when you care about one API rather than everything an app does, or when the traffic comes from a phone or another device.

  • Right-click a domain in the sidebar and choose Enable SSL Proxying for the host.
  • Right-click a request in the traffic list and choose Enable SSL Proxying for its host.
  • Click a locked row and click Enable only the host in the inspector.

Click a locked row to turn on decryption for its host or its app.

  1. Decrypt this host only
  2. Decrypt every host the app connects to
The inspector for a locked CONNECT row to cdn.shopapp.example from Google Chrome, with buttons Enable only cdn.shopapp.example and Enable all domains from Google Chrome

Cloak Proxy closes the open encrypted connections to that host, so apps reconnect with decryption on. The domain gets a green open lock in the sidebar.

To stop, right-click the domain or a request and choose Disable SSL Proxying for the host. That removes the host’s entry from the list in Settings.

Cloak Proxy › Settings… › SSL Proxying lists every host pattern. Use it to add wildcards, or to turn entries off without deleting them.

Settings › SSL Proxying.

  1. On: include or skip the entry
  2. Host: the host or pattern, editable in place
  3. Type a host or pattern
  4. Add it to the list
  5. Remove the selected entry
Settings › SSL Proxying with an empty table of On and Host columns, an explanation of wildcards, and a field with the placeholder api.example.com or *.example.com plus Add and Remove buttons
  1. Open Cloak Proxy › Settings… (⌘ ,) and click SSL Proxying.

  2. Type a host or pattern in the field, such as api.example.com or *.example.com.

  3. Press Return or click Add.

Control What it does
On Decrypts hosts matching this entry. Turn it off to keep the entry but stop decrypting.
Host The host or pattern. Click it to edit.
Add Adds what you typed.
Remove Removes the selected entry.

Entries you add in Settings apply to new connections. Already-open tunnels stay encrypted until the app reconnects, so restart the app or wait for it to open new connections. Turning SSL Proxying on from the sidebar, the traffic list or the inspector closes the open tunnels for you.

Pattern Matches Doesn’t match
api.example.com api.example.com www.example.com, example.com
*.example.com api.example.com, a.b.example.com example.com (add it separately)
api-*.example.com api-eu.example.com, api-staging.example.com api.example.com
api?.example.com api1.example.com, api2.example.com api10.example.com
example.com:8443 example.com on port 8443 only example.com on port 443
* Every host

Matching ignores letter case. * matches any run of characters, including dots, and ? matches exactly one character. Add :port to match only that port; without it, the pattern matches every port.

Some traffic is decrypted even without an SSL Proxying rule:

  • Domains you capture through DNS for apps that ignore the proxy, because you set them up to be inspected. Hosts that turn out to pin their certificates are the exception: Cloak Proxy passes them through.
  • Cloak Proxy’s own certificate page at http://cloak.proxy (also cert.cloak and cloakproxy.local), so devices can download the certificate. See Other devices and access control.

Some hosts break when they’re decrypted, so Cloak Proxy passes them through encrypted even when a rule covers them (*, a whole app, or Decrypt all of this device’s HTTPS). They’re listed under Never decrypted in Settings › SSL Proxying.

Since 0.4.0

A few Apple system services refuse any certificate but Apple’s own, on every iPhone, iPad and Mac. Decrypting them can’t work, and trying breaks something essential on the device, so Cloak Proxy never decrypts them:

Host What breaks if it’s intercepted
ppq.apple.com Apps installed from Xcode or by a company won’t open; iPadOS and iOS show Untrusted Developer and can’t verify the app.
*.push.apple.com Push notifications stop for every app.
gsa.apple.com Signing in to an Apple Account fails.
albert.apple.com Activating an iPhone or iPad fails.

They’re marked Built in and can’t be removed. The list is deliberately short.

Since 0.4.2

From 0.4.2, the sign-in pages below and Cloudflare’s challenge host are never decrypted by default either. They check that the connection comes from the browser or app itself, by its TLS and HTTP/2 fingerprint. Decrypted, they see Cloak Proxy’s connection instead and refuse it:

Host What breaks when it’s decrypted
accounts.google.com Google sign-in says the browser may not be secure, or hangs.
idmsa.apple.com Apple Account sign-in on the web and Sign in with Apple fail.
appleid.apple.com Sign in with Apple and the Apple Account page fail.
login.microsoftonline.com Microsoft work and school sign-in (Entra ID) fails.
login.microsoft.com Microsoft work and school sign-in (Entra ID) fails.
login.live.com Personal Microsoft account sign-in fails.
*.okta.com Okta sign-in and FastPass fail: Okta refuses inspected connections.
challenges.cloudflare.com Cloudflare’s Verify you are human checks never pass.

In Settings › SSL Proxying each one shows what breaks when it’s decrypted and has a Decrypt anyway switch, off by default. To debug one of these on purpose, switch it on. It’s then decrypted whenever an SSL Proxying rule covers it, and when you switch it off again its open connections close once their requests in flight finish. The Doctor tells you when a sign-in fails because it’s decrypted, and switches it back off with Stop decrypting the host. Other sign-in pages and Cloudflare-protected sites aren’t in the list: the Doctor finds them as they fail.

In 0.4.1 and earlier these hosts are decrypted like any other when a rule covers them. If a sign-in fails or a site keeps asking you to verify you’re human, turn SSL Proxying off for the browser or the host and try again. Pausing recording doesn’t help in these versions, because decryption carries on while paused.

Hosts that pin their certificates are found by the Doctor, which offers to stop decrypting them and adds them to Never decrypted when a wildcard or an app rule covers them. From 0.4.2 it does the same for hosts that answer with a bot challenge. Click Decrypt Again to remove one.

A dimmed row with the method CONNECT, a gray status dot and only a host in its URL is an encrypted tunnel that Cloak Proxy passed through without reading. With separate Host and Path columns, its Path reads Encrypted tunnel (or Connecting… while the connection opens). Hover the dot to see Encrypted tunnel. Turn on SSL Proxying to see the contents. Click the row to see Encrypted HTTPS to the host, with the buttons described above.

A tunnel row stays in the list for the whole connection. One row can stand for many requests the app sent over that connection. Once you turn on SSL Proxying, new connections appear as individual requests instead.

On ports other than 443, Cloak Proxy looks inside tunnels even without a rule. If the app speaks plain HTTP inside the tunnel, its requests appear as readable http:// rows.

If an app rejects Cloak Proxy’s certificate, the request appears as failed with the message TLS handshake with the client failed. The client probably doesn’t trust the Cloak Proxy CA, or it pins certificates. It has two common causes:

Cause Fix
The app or device doesn’t trust the Cloak Proxy root certificate Trust it on this Mac (Install & Trust…), on the device, or in the runtime: Node.js, Python, Java, Firefox and others keep their own trust stores. See Terminal and runtimes and Java and the JVM. Android apps also need a network security config that trusts user certificates; see Android.
The app pins its certificate It accepts only its own server’s certificate, so it can’t be decrypted. Turn SSL Proxying off for that host or app so the app works again.

The Doctor tells the two causes apart from the handshakes it saw, lists the hosts each app pins, and fixes it with one click: Stop decrypting these hosts removes them from this list, or adds them to Never decrypted in Settings › SSL Proxying when a wildcard or the app’s own rule covers them. Since 0.3.0

For domains captured through DNS, Cloak Proxy handles pinning for you: after the first failed handshake it adds Cloak Proxy now passes the host through without decrypting it, so the app keeps working to the message, and relays that host untouched until Cloak Proxy restarts.

Up to 0.4.1, pausing recording (⇧ ⌘ R) only stops adding requests to the list: SSL Proxying and your rules keep working on the traffic.

Since 0.4.2

From 0.4.2, pausing also stops decryption: connections pass through Cloak Proxy untouched, nothing is decrypted, and no rules or tools apply, so sign-ins and bot-protected sites work as if Cloak Proxy weren’t there. Decrypted connections close once their requests in flight finish (an upload in progress completes), and apps reconnect on their own; when you resume, connections that SSL Proxying covers are decrypted again. To keep decrypting while paused, choose Keep intercepting, just don’t record in Settings › General. See Hands off while paused.

The green open lock next to an app or domain, and the choice between Enable and Disable in the menus, reflect entries for that exact app or host. A host decrypted through a wildcard such as *.example.com still shows the globe icon in the sidebar, but its requests in the list show their full URLs. To stop decrypting it, edit the wildcard in Settings › SSL Proxying.

  • From an AI assistant, the MCP tool ssl_proxying lists, adds and removes hosts and apps. From 0.4.2 it also switches Decrypt anyway on (decrypt_anyway) and off (never_decrypt) for a built-in sign-in host, and adding a browser returns a warning with what to use instead. Since 0.4.2 See MCP server.
  • For a headless proxy, cloakctl run --ssl HOST_PATTERN and --ssl-app APP_NAME decrypt hosts and apps; repeat them for more than one. From 0.4.2, --ssl-app with a browser prints a warning. See cloakctl.