# Quick start

> Capture and decrypt your first HTTPS request with Cloak Proxy in about five minutes, from trusting the certificate to reading a JSON response.

Source: https://docs.subcloak.com/cloak-proxy/getting-started/quick-start/

This guide takes you from a fresh install to a decrypted HTTPS request you can read, in about five minutes. You'll trust the certificate, capture your Mac's traffic, turn on SSL Proxying for one app, and inspect a response.

## Before you start

[Install Cloak Proxy](https://docs.subcloak.com/cloak-proxy/getting-started/install/) and open it. You need your Mac password twice: once to trust the certificate, and possibly once for macOS to change the proxy settings. On Linux, [install the beta](https://docs.subcloak.com/cloak-proxy/getting-started/install-linux/), then trust the certificate and turn on the system proxy as that page shows; the rest of this guide works the same.

## Decrypt your first request

1. **Trust the certificate.** In the orange banner **Trust the Cloak Proxy certificate to decrypt HTTPS**, click **Install & Trust…** and confirm with your password.

   The banner disappears, and the bottom bar shows **CA trusted** near its right end.

2. **Check that macOS traffic is captured.** Cloak Proxy turns the macOS proxy on when it opens. The capsule in the middle of the toolbar reads **Listening on 127.0.0.1:9090** with a green dot, and the bottom bar shows **macOS traffic on** in green.

   If it says **macOS traffic off** in orange, click it, or press <kbd>⇧</kbd> <kbd>⌘</kbd> <kbd>P</kbd>.

3. **Make some traffic.** Open Safari and load any HTTPS website.

   Requests appear in the list. HTTPS rows show the method `CONNECT`, a gray status dot and only the host, dimmed: Cloak Proxy passes them through without reading them, because nothing is set up for decryption yet.

4. **Turn on SSL Proxying for the app.** In the sidebar under **Apps**, click **Safari**. In the bar above the list, click **Enable SSL Proxying for All Requests from Safari**.

   Cloak Proxy closes Safari's open encrypted connections so it reconnects. The new connections are decrypted.

5. **Reload the page in Safari.** New rows appear with a green status dot, the full URL, real methods such as `GET`, status codes and sizes.

6. **Inspect a request.** Click a row. The inspector below the list shows the **Request** on the left and the **Response** on the right. Pick a JSON response and open its **Body** tab to see it as a collapsible tree. To put the inspector to the right of the list instead, click **Layout** in the toolbar.

*[Screenshot: Decrypted requests to api.example.com and other example hosts in the traffic list, with the selected request's headers on the left and its JSON response body as a tree on the right. Decrypted traffic: the list on top, the selected request's details below.]*

> **Decrypt just one host instead:**
> To decrypt one host rather than a whole app, right-click the domain under **Domains** in the sidebar and choose **Enable SSL Proxying for** the host. You can also click a dimmed `CONNECT` row and use **Enable only** the host in the inspector. See [SSL Proxying](https://docs.subcloak.com/cloak-proxy/capture/ssl-proxying/).

## If nothing shows up

| What you see | What to do |
|---|---|
| **Waiting for traffic** and **macOS traffic off** | Click **Capture macOS Traffic** in the empty list, or press <kbd>⇧</kbd> <kbd>⌘</kbd> <kbd>P</kbd>. |
| An alert that macOS doesn't report the proxy as active | A VPN or a configuration profile may be overriding proxy settings. Disconnect the VPN and try again. |
| Rows stay dimmed after you turn on SSL Proxying | Make sure the bottom bar says **CA trusted**, then reload so the app opens new connections. |
| A row says the TLS handshake with the client failed | The app doesn't trust the Cloak Proxy certificate, or it pins its certificates. See [Locked tunnels and pinned apps](https://docs.subcloak.com/cloak-proxy/capture/ssl-proxying/#locked-tunnels-and-pinned-apps). |
| A command-line tool's requests don't appear | Most command-line tools ignore the macOS proxy. Use a [configured Terminal](https://docs.subcloak.com/cloak-proxy/devices/terminal-and-runtimes/). |
| An app's requests never appear, even with the proxy on | The app ignores the macOS proxy. Look for it under **Not using the proxy** in the sidebar. See [Apps that ignore the proxy](https://docs.subcloak.com/cloak-proxy/capture/apps-that-ignore-the-proxy/). |

## Turn it off when you're done

Quit Cloak Proxy with <kbd>⌘</kbd> <kbd>Q</kbd>. Your previous proxy settings come back. To stop capturing without quitting, click **macOS traffic on** in the bottom bar or press <kbd>⇧</kbd> <kbd>⌘</kbd> <kbd>P</kbd>.

> **Caution:**
> Decrypt only traffic from your own apps and accounts, or traffic you have permission to inspect. Decrypted requests can contain passwords, tokens and cookies, so take care when you [export or share sessions](https://docs.subcloak.com/cloak-proxy/sessions/export/).

## Next steps

- Filter the list by host, status or content type: [Filtering](https://docs.subcloak.com/cloak-proxy/inspect/filtering/).
- Change a response without touching the server: [Map Local](https://docs.subcloak.com/cloak-proxy/tools/map-local/) and [Breakpoint](https://docs.subcloak.com/cloak-proxy/tools/breakpoint/).
- Capture an iPhone or Android device: [Devices](https://docs.subcloak.com/cloak-proxy/devices/overview/).
- See which endpoints your app calls and spot leaked secrets: [Insights](https://docs.subcloak.com/cloak-proxy/insights/overview/).

## Related

  - [Interface tour](https://docs.subcloak.com/cloak-proxy/getting-started/interface-tour/): Every part of the main window, its menus and windows.
  - [SSL Proxying](https://docs.subcloak.com/cloak-proxy/capture/ssl-proxying/): Decrypt by app, by host or with wildcards.
  - [How it works](https://docs.subcloak.com/cloak-proxy/getting-started/how-it-works/): Proxies, tunnels and certificates, explained.
  - [Inspector](https://docs.subcloak.com/cloak-proxy/inspect/inspector/): Every request and response tab.
