SSL Proxying
APXY can intercept HTTPS (TLS) traffic by acting as a man-in-the-middle proxy, generating leaf certificates on-the-fly signed by its root CA.
HTTPS interception modes
APXY supports three levels of HTTPS inspection:
| Mode | What’s captured | Privacy |
|---|---|---|
| Tunnel (default) | Nothing — encrypted passthrough | Highest |
| Metadata | Headers only, no bodies | Medium |
| Deep | Full request and response | Full inspection |
HTTPS MITM is opt-in by default for privacy. Traffic is tunneled without inspection unless you explicitly enable it.
Web UI
Open SSL from the Network & Security group. The page provides:
- A list of domains with SSL interception enabled
- Add domain form to enable HTTPS interception for a new domain
- Enable/disable toggles for each domain
- Delete buttons to remove domains from the list
When you create a mock rule for an HTTPS URL in the Mock Rules page, APXY automatically enables SSL interception for that domain.
CLI
apxy ssl …, apxy certs … (including custom CAs), and startup flags such as --ssl-domains, --bypass-domains, and --mitm-all are documented in CLI Reference → Setup and CLI Reference → Proxy.
Quick example (enable deep inspection for one domain):
apxy ssl enable --domain api.example.comSee Certificate Setup for platform-specific trust instructions.
Custom Certificate Authorities
APXY lets you add your own Certificate Authorities bound to specific domain patterns. When APXY intercepts HTTPS traffic for a matching domain, it uses your custom CA to sign the leaf certificate instead of the default APXY root CA.
Full apxy certs custom … syntax is in CLI Reference → Setup.
Web UI
- Open the SSL page from the Network & Security group
- Scroll to the Custom Certificate Authorities section
- Click Add CA
- Provide the domain pattern, CA certificate file, and private key file
- Click Save
Domain matching
Custom CAs are matched against the requested domain using these rules:
- Wildcard patterns —
*.example.commatches any subdomain ofexample.com - Exact match —
api.example.commatches only that specific domain - Fallback — if no custom CA matches, APXY uses its default root CA
Custom CAs persist across proxy restarts and are included when you export/import settings — see Settings Management.
Server certificates
APXY checks the certificate of each server whose traffic it decrypts, except on localhost. A failed check returns a 502 response that explains the reason. See SSL Errors.
HTTP/2
When the client and the server both support HTTP/2, APXY uses it on both sides of a decrypted connection. Captures, mock rules, and streams work the same way as with HTTP/1.1.
TLS key log
To decrypt a packet capture in Wireshark, write the TLS session keys to a file:
apxy start --tls-keylog keys.logWithout the flag, APXY uses the SSLKEYLOGFILE environment variable when it is set. The file holds session secrets, so keep it private and delete it when you are done.
Proxy bypass
Exclude sensitive domains from proxying entirely using --bypass-domains at startup (see Proxy). Bypassed domains are tunneled without any MITM — traffic passes through encrypted. This is required for apps with certificate pinning.
You can also use filter rules to exclude domains from being recorded (traffic is still forwarded):
apxy filter set --type block --target "sensitive-api.com"