Skip to content

Releases

v1.103.1

Choose a tag to compare

@github-actions github-actions released this 22 Nov 10:27

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.103.1/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Changed

  • Updated in-app F1 help (HelpWindow) to cover the Tools menu (Benchmark, gRPC, Doctor, Cert Inspector, Smart-Card PIN), certapi cors, full MCP toolset, .http/Postman/Insomnia/WSDL imports, Bash/Zsh completions, and Ctrl+K/Ctrl+F shortcuts.
  • Synced README.md, GitHub Pages (docs/index.html), and wiki pages (05, 11, 17, 20, 21, 22, 23, 28) with all 1.102.0–1.103.0 features.

Full Changelog: v1.103.0...v1.103.1

v1.103.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 09:03

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.103.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Added

  • Fetch spec & browser CORS accuracy:
    • Forbidden browser method checks (CONNECT, TRACE, TRACK) and forbidden method-override headers (X-HTTP-Method*, Access-Control-Request-Private-Network), blocked before any network call as fetch() does.
    • Fetch 1,024-byte combined safelisted request-header cap and inverted Range bound detection (bytes=100-50).
    • Cross-site Set-Cookie validation under --credentials (SameSite=None, Secure, and third-party Partitioned/CHIPS notes, with same-site awareness).
    • Response inspection for Cross-Origin-Resource-Policy (CORP), Cross-Origin-Embedder-Policy (COEP), Cross-Origin-Opener-Policy (COOP), and Timing-Allow-Origin.
    • Preflight Vary completeness notes (Access-Control-Request-Method, Access-Control-Request-Headers), trailing-slash Access-Control-Allow-Origin hint, Safari 10-minute cap note, and proper Access-Control-Max-Age <= 0 ("disables preflight caching") reporting.
  • Expanded certapi cors --audit probes & findings:
    • Port look-alike (:8443/:8444), userinfo (@), underscore (_.), and encoded backtick (%60.) bypass probes, plus http://localhost / http://localhost:3000 dev-origin checks against non-local targets.
    • Findings for dynamic Access-Control-Allow-Origin without Vary: Origin, credentialed preflight reflection, and (with --preflight-without-cert) unauthenticated mTLS preflight rejection.
  • CLI CORS workflows & --suggest expansion:
    • certapi cors --diff <other-url> to compare CORS verdicts, preflight/response headers, and readable headers across two endpoints.
    • certapi cors --from-openapi <spec.json> [--base-url <url>] to sweep every operation in an OpenAPI 3.x / Swagger 2.0 JSON spec.
    • --max-age <seconds> for --suggest, "suggestion" included in --json output, and 8 new config targets (apim, yarp, cloudflare, caddy, traefik, apache, fastapi, go) with shell tab completion.
    • cors <origin> exposes <Header> / !exposes <Header> assertions, multi-origin CORS assertion probing on GET/HEAD (catches reflecting servers), and certapi run --origin <o> --cors-preflight.
  • Desktop CorsWindow & MCP cors_check parity:
    • Desktop CorsWindow adds multi-method matrix input, editable request headers, Preflight only, From HAR… inspection, all 14 --suggest frameworks, automatic Private Network Access notice, and Copy, Copy Fix, and JSON… export buttons.
    • MCP cors_check adds ws:///wss:// WebSocket origin checks & audits, origins/methods matrix arrays, preflightOnly, preflightWithoutCert, suggest/maxAge, and diffUrl.
  • Mock server --cors-fault additions: star-with-credentials, null-origin, missing-expose, bad-methods, bad-headers, preflight-no-pna, and preflight-require-cert (plus tab completion).

Full Changelog: v1.102.0...v1.103.0

v1.102.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 03:37

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.102.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Added

  • CLI send scripting & polling flags:
    • --select <path> (with --raw) extracts a JSON value directly by dotted/indexed path without needing jq, exiting 1 if the path is missing or the body is not JSON.
    • --until <expr> (with --interval <seconds> and --max-wait <seconds>) polls an endpoint over pooled connections until an assertion expression passes; --watch <seconds> repeats a request until Ctrl+C.
    • --dry-run resolves variables, profile defaults, certificate, headers, and proxy routing and prints the request (with Authorization masked) without touching the network.
    • -D, --dump-header <file> writes the response status line and headers to a file, and --max-size <bytes> fails if a response exceeds a byte budget.
  • Offline JWT inspector: certapi token inspect [<jwt-or-origin>] [--workspace <file>] [--json] decodes JWT header, claims, scopes, roles, issuer, audiences, and expiry completely offline; in the desktop app, clicking the session token chip adds Inspect JWT claims….
  • Deep X.509 certificate inspector & store filters:
    • certapi certs --inspect <thumb|subject> and --inspect-file <path> (with --cert-password, --key-file, and --check-revocation) print SHA-1/SHA-256 thumbprints, serial, SANs, EKUs, key algorithm/size, CNG/hardware/smart-card provider detection, and chain status.
    • certapi certs --valid-only, --client-auth-only, and --expiring-within <days> [--fail] filter the store and support CI certificate-expiry checks.
  • Suite orchestration (run): --fail-fast, --parallel <n>, --filter <glob>, and --repeat <n> for faster, targeted CI collection runs.
  • Load testing upgrades (bench): --rate <rps> constant-arrival-rate pacing, --threshold <expr> / --max-error-rate <v> SLO gates (e.g. p99 < 250ms, error-rate <= 1%, rps >= 50), --histogram ASCII latency distribution, and --csv <file> per-sample export.
  • VS Code / JetBrains .http importer: certapi import http <file> and Import ▾ → Import .http file… (plus Postman, Insomnia v4, and WSDL imports directly from the desktop app's Import menu).
  • Code snippet export CLI: certapi export code <curl|powershell|python|csharp> <Collection/Request> [-o <file>] [--env <name>] generates ready-to-run client code from saved requests.
  • Diagnostics & gateway additions:
    • certapi doctor --server-cert-out <file.pem>, --chain-out <file.pem>, and --check-revocation.
    • certapi serve --print-pac prints a FindProxyForURL PAC script for configured upstreams/allowlist, and /_certapi/status reports per-site certificate expiry countdowns.
    • certapi completion bash and certapi completion zsh join PowerShell tab completion.
  • New MCP tools: doctor, inspect_cert, inspect_token, and diff_known_good join the MCP server's toolset.
  • Desktop app tools & productivity:
    • Tools ▾ menu with Connection Doctor…, Benchmark current request…, gRPC Client…, Inspect selected certificate…, Unlock smart-card PIN…, and Quick Jump (Ctrl+K) command palette across tabs, collections, environments, and tools (plus Ctrl+F to focus response search).

Changed

  • Performance & memory optimizations across CLI, Core, gRPC, and Desktop:
    • Fast 40-hex thumbprint lookup in CliCert, lazy ApiClient instantiation, single-pass global option parsing, and selective workspace decryption (AppState.LoadLightFrom) so certapi send skips decrypting History/Collections bodies when read-only.
    • Streaming AppState.PeekTheme and NeedsSecretUpgrade via Utf8JsonReader + ArrayPool, structural AppState cloning (SnapshotForSave / SaveSnapshotTo) instead of JSON round-trips, pinned DPAPI entropy and ArrayPool buffers in DpapiSecretProtector, and background non-blocking workspace saves in the desktop app.
    • Offloaded response formatting and diagnostics onto background threads in MainWindow, lazy ResponseView.Raw(byte[], out bool) slicing for multi-MB bodies, virtualized HistoryList / CollectionsTree / NetworkList, coalesced Network UI updates, cached HelpWindow sections, and pre-sized SyntaxHighlighter / Bench hot paths (DiscardBody pooled drain in ApiClient).
    • Single-pass assertion evaluation in RequestRunner, memoized certificate lookups in run and chain runs, and batched gRPC reflection descriptor loading (DescriptorPool.LoadServicesAsync).

Full Changelog: v1.101.0...v1.102.0

v1.101.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 01:21

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.101.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Added

  • serve --retry <n>: the gateway sends a request to the upstream again when the connection fails
    or the answer is a --retry-on status (429, 502, 503, 504 by default), with send's backoff and
    Retry-After honoured. Every attempt and every wait shares --timeout, so a caller never waits
    longer than it would have; when the time or the attempts run out, the last answer is relayed.
    Only GET, HEAD, OPTIONS, PUT and DELETE unless --retry-unsafe; a body up to 1 MB goes
    again whole, a larger one only when the connection failed before any of it was sent. The request
    line says (3 attempts). A profile's serve section takes retry; the top-level retry (for
    send) still does not apply to the gateway. Before, --retry was accepted and ignored here.
  • serve --http2: HTTP/2 is offered to https sites, so many requests share one connection and one
    certificate handshake; a site without it answers in HTTP/1.1. Plain http sites and sites with
    Windows sign-in stay on HTTP/1.1. The request line ends HTTP/2 when it was used.
  • serve looks for a renewal of each client certificate every 5 minutes (the store query again, or
    the file when it changed) and presents one it finds from the next connection on, without a
    restart; requests under way finish on the old one. A certificate named by thumbprint is not
    renewed this way.
  • serve warns about a client certificate's expiry while it runs, not only at the start: daily
    within 14 days of it, hourly once it has passed. /_certapi/health lists each certificate
    presented with its notAfter and daysLeft.
  • serve --connection-lifetime <seconds> (default 600, profile key connectionLifetime): a
    connection to a site is replaced after this long, once the request on it is done. Before, a site
    in steady use kept its connections for as long as the gateway ran, so a site that moved (a DNS
    failover, a load balancer's new members) was not followed until a restart. 0 keeps the old
    behaviour.

Changed

  • When several certificates match --cert and all are one subject from one issuer (a renewal next
    to the certificate it replaced), every command now uses the newest — valid now, made for client
    authentication, latest expiry — and a note says which. Before, it stopped with "be more specific",
    so a renewal in the store stopped serve (and every script) from starting until --cert was
    changed. Matches from different issuers still need --cert-issuer or --cert-serial.

Full Changelog: v1.100.2...v1.101.0

v1.100.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 12:27

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.100.2/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Security

  • The mock's certificate authority is now limited to what the mock needs: localhost,
    127.0.0.0/8 and ::1, the mock's own subject names, and TLS server and client
    authentication (a critical X.509 name constraint and an extended key usage). Since 1.100.0 its
    key is kept between starts, and the docs suggest trusting mock-ca.cer, so before, anything able
    to read that key as you could have made a certificate for any site, a signed program or a signed
    e-mail that your machine would accept. An authority
    kept by 1.100.0 or 1.100.1 is replaced on the next start: trust the new mock-ca.cer once, and
    remove the old one (certutil -user -delstore Root <old thumbprint>).

Fixed

  • A response whose Content-Length claimed more than it sent no longer reserved that much memory
    up front: the buffer starts at 4 MB and grows as the bytes arrive. Before, a server claiming
    1.9 GB and sending ten bytes cost 1.9 GB, and under a memory limit failed with
    OutOfMemoryException. A body larger than the 2 GB that can be held in memory now says so.
  • mock: on a kept-alive connection the 10-second idle limit applied to the whole next request,
    so an upload that took longer than that to arrive was dropped. It now applies only to waiting
    for the request to begin; once it has, the request has 30 seconds from then, as a first one
    has from the connection.
  • A value starting with a dash after a long option that takes one (--user-agent -ok,
    --query -debug=1) was split as a curl bundle (-o k, -d ebug=1). It is now the option's
    value, on every command and in certapi curl; after a switch (--include -sS) or an option
    whose value is optional (--cors -sS) a bundle is still a bundle.
  • certapi curl joined --data-urlencode parts after all the -d parts; they are now joined in
    the order they were given, as curl does, in the body and with -G in the query. Beside
    --data-binary they are still refused.
  • Two mocks starting at the same moment in one --cert-dir could each make a new authority and
    leave one's key beside the other's mock-ca.cer. They now take turns.
  • ApiClient with an infinite request timeout timed the response body out at once.
  • selftest left the keys it made ahead undisposed when making a certificate failed.
  • tls says the server kept the connection open for at least half a second, as it waits up
    to 1.5 s on a slow link.

Full Changelog: v1.100.1...v1.100.2

v1.100.1

Choose a tag to compare

@github-actions github-actions released this 15 Nov 04:38

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.100.1/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Fixed

  • certapi curl and import curl kept a pasted command's Windows paths intact only inside
    quotes: unquoted, a path such as -E certs\me.pfx or --cacert C:\certs\ca.cer lost its
    backslashes, as bash would drop them. A backslash before an ordinary character is now kept;
    before a space, a quote, $ or another shell character it still escapes it, so a bash command
    reads as it did.

Full Changelog: v1.100.0...v1.100.1

v1.100.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 03:59

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.100.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Added

  • certapi curl: paste a curl command and it runs with curl's meaning, through send — the
    Windows certificate store, --timing, --assert and the rest still apply, and can be added to
    the pasted line. Redirects are followed only with -L, -d is a form body and several are
    joined with &, -d @file drops line breaks, --json <data> sends JSON, -v turns on
    --debug, -c saves cookies, and -E/--cert takes a file, file:password, or curl's
    Windows CurrentUser\MY\<thumbprint>. One quoted argument is split as a shell would, browser
    "Copy as cURL" (bash or cmd) included.
  • send reads more of curl's own spellings: bundled switches (-sSL, -sk), values attached to
    their letter (-XPOST, -HAccept:x, -d{}), -L/--location, --compressed, -S, -#,
    -e/--referer, --data-raw (a literal body), --data-binary, -T/--upload-file (PUT),
    -G/--get (data into the query), -O/--remote-name, --url, -m, --fail-with-body,
    --oauth2-bearer, --tlsv1.2/--tlsv1.3 and -E <file[:password]>. Most of these were refused
    with a hint before. -L, --compressed, --tlsv1.x and -E work on every command that has
    the option they stand for. curl's --json <data> is refused with what to use, since certapi's
    --json prints an envelope.
  • mock --tls and --mtls keep their certificates in --cert-dir and use them again on the next
    start, so mock-ca.cer is trusted once and mock-client.pfx stays the same. The private keys
    are kept encrypted to the Windows account (DPAPI). New ones are made when the kept ones are
    missing or near expiry, or with the new --new-certs; a --tls-mode certificate is still made
    each time. Starting mock --mtls is quicker for it (on Windows, 270 ms → 165 ms).

Changed

  • certapi.exe takes its culture data from Windows (NLS) instead of loading ICU, about 10 ms
    sooner on every command that prints a number or a date (send 111 → 102 ms, certs
    85 → 75 ms). What it prints is the same.
  • A refused connection to this machine is reported at once instead of after two seconds. Windows
    retries a refused connect twice, so every send to a local server that was down took 2 s (a
    20-request run against one: 41 s), and so did every new connection to http://localhost:<port>
    when the server listened on 127.0.0.1 only, since localhost is tried as ::1 first. The
    retries are now turned off for loopback addresses only — a real network keeps them, since a SYN
    can be lost there — and only while nothing listens on the port: Windows refuses the same way
    when a server's queue of waiting connections is full, so a refusal from a port something does
    listen on is retried as before, and a busy local server still takes every connection. send,
    run, curl, doctor, tls, the streams, grpc, serve and a proxy on this machine all get
    it.
  • tls no longer waits a fixed 400 ms after every TLS 1.3 handshake. A server that asked for no
    certificate is given two round trips and a margin to ask late (50 ms to a nearby one: 692 ms →
    391 ms); one that asked is given half a second to refuse the certificate, since that is when a
    refusal shows (see Fixed).
  • selftest and a mock making new certificates generate their RSA keys in parallel.
  • send --har, run --json and certs --json write their JSON without the reflection serializer,
    which spent 30–60 ms building metadata first; the output is byte for byte the same.
  • Every command starts a little sooner: the --help check no longer builds an expression per
    option when no -h/--help was typed, and a URL, header or body with no {{ skips variable
    resolution, and with it the one-time set-up of every generated expression.
  • mock checks its kept certificates by their signature instead of building a chain.
  • send --json writes its envelope directly instead of through the reflection serializer, about
    50 ms sooner on Windows (201 ms → 147 ms against a local server). The text is the same, byte
    for byte; mcp's send tool gets the same saving.
  • --debug lines say when they happened: debug: [+0.059s] …, counted from the start of the
    process, so a slow step shows as a gap. The first line names the version and runtime, and new
    lines say how long the workspace and the certificate store took to read. --log-file lines carry
    the same offset.
  • Large responses use about half the memory: the body is read once, into an array of its own size,
    instead of being buffered and then copied (a 286 MB download: 689 MB peak → 341 MB, and about
    twice as fast). The time reported and the request timeout still include the body.
  • The app's Pretty view formats a JSON body over 4 MB too, for as much as it shows, instead of
    showing it unformatted; it reads only as far as it formats, so a 28 MB body costs the app 65 ms
    rather than the second it took to format all of it.
  • The app's Pretty view shows the first 128 K characters of a large body (was 512 K): laying out
    512 K characters of coloured text held the window for about 0.9 s. Raw still shows the first
    1 MB, and Copy and Save… take all of it.
  • Text output to a file or a pipe is no longer slowed by .NET's 256-byte console buffer, which on
    Windows made every 256 bytes a separate system call: --pretty and --json on a 28 MB body
    took 11 s and 9 s when redirected. Redirected stdout now has a 64 KB buffer, still flushed after
    every write, so sse, ws, a server's log and MCP replies still appear as they happen.
  • --pretty on a large JSON body writes the formatted text as it goes instead of building it in
    memory first (28 MB of JSON: 431 MB peak → 87 MB). The output is byte-for-byte the same.
  • Faster start-up: certapi.exe and the app are published ReadyToRun and no longer compressed.
    On Windows x64, certapi send to a local server went from 240 ms to 134 ms and its peak memory
    from 89 MB to 46 MB; the app's window is ready in 0.73 s instead of 1.0 s, using 131 MB instead
    of 225 MB. The downloads are larger for it: about 95 MB and 160 MB.
  • mock keeps connections alive between requests, so bench against it measures requests
    rather than handshakes. --no-keep-alive answers Connection: close as before.
  • Requests through a proxy reuse their connection: the CONNECT tunnel and its TLS handshake are
    made once per site instead of once per request, so a suite, bench or the app behind a
    corporate proxy no longer pays a tunnel and a handshake for every call. HTTP/3 connections are
    pooled the same way. Each response still reports the server certificate it was sent over.
  • A large workspace loads faster on every command-line run: it is read with a serializer generated
    at build time instead of reflection (send with a 2 MB workspace: 170 ms → 130 ms). The file
    written is byte-for-byte the same.
  • mock sends each response without waiting on Nagle's algorithm, which could hold the body of
    every response on a kept-alive connection for a delayed ACK (about 40 ms behind a proxy).
  • The regular expressions used on every request ({{variables}}, URL rewriting, log redaction and
    others) are generated at build time instead of compiled at start-up.

Fixed

  • tls said "client certificate not requested" for a server that requires one, when no --cert
    was given — the ordinary case for a Windows server, which sends its certificate request with no
    list of issuers. It now counts the request either way, and says when the server ends the
    connection just after the handshake: refused … it requires a client certificate, or with
    --cert, refused … it did not accept the certificate sent (exit 1). A client finishes its
    side of the handshake before the server judges its certificate, so this is where an mTLS
    refusal shows.
  • ws -m … --expect 1 no longer waits for ever when stdin is a pipe nobody closes (a CI step, a
    scheduled task, a parent script): piped lines are sent as they arrive instead of being read to
    the end before connecting.
  • mock listens on ::1 as well as 127.0.0.1. localhost resolves to ::1 first on Windows,
    and the refused connection there cost about two seconds before every new connection to
    https://localhost:<port> — the name the mock's certificate is for. The certificate now names
    127.0.0.1 and ::1 too, so https://127.0.0.1 passes a trust check against mock-ca.cer.
  • bench no longer claims connections were pooled and reused when the server answered
    Connection: close; it says how many responses closed their connection (closedByServer in
    --json).
  • --help for browse, call, cors, crawl, mock, mqtt, signalr and tls now ends with
    the global options line like every other command. crawl --help lists the certificate and
    transport options in full instead of pointing at send, and `mqtt --h...
Read more

v1.99.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 13:02

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.99.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

CORS, checked the way a browser checks it. cors now follows redirects hop by hop, checks Private
Network Access, grades a loose policy with --audit (WebSockets too), judges a whole browser
capture with --from-har, and prints the server fix with --suggest. Suites, doctor and the app
can check CORS as they go. mock and serve can answer with a strict, a public or a deliberately
broken CORS policy. Nothing that worked before needs changing.

Added

  • cors --audit: probes for the CORS mistakes that let another site read an API's answers — any
    origin reflected, null trusted, look-alike domains that pass a substring or regular-expression
    check, plain http trusted, every subdomain trusted, preflights that grant anything — graded high
    to info, high when credentials are allowed too. Only GET and OPTIONS are sent; exit 1 on a high
    or medium finding.
  • cors --private-network: checks Private Network Access (Access-Control-Request-Private-Network
    on the preflight, Access-Control-Allow-Private-Network in the answer). A public page calling a
    private or loopback address is pointed out either way. mock --cors grants it.
  • cors follows redirects as a browser does: each hop CORS-checked, a new preflight where needed,
    POST to GET on 301/302/303, Authorization dropped across origins, and Origin: null after a
    cross-origin redirect. --max-redirs and --no-redirect apply; the hops are reported.
  • cors takes several --origin and -X values (repeated or comma-separated) and prints a table.
  • A cors <origin> allowed|credentials|blocked assertion for send --assert, saved requests and
    run, and a CORS target on the app's Tests tab. The request is sent with that Origin.
  • doctor --origin <o>: a final cors stage.
  • The app's Diagnostics view shows the CORS verdict for a request sent with an Origin header.
  • mcp cors_check: audit and privateNetwork arguments; redirects are followed with every
    hop checked against the allowlist.
  • cors --from-har <file>: every cross-origin request in a browser capture, judged from the
    recorded preflight and response; --origin judges them as if from another page, --live
    re-checks each against the server now.
  • run --origin <o> (and --cors-credentials): a CORS check on every request of a suite, in its
    table, JUnit and markdown reports. Nothing is written to the collection.
  • cors --suggest [<framework>]: the server configuration that grants what was checked, as an
    allow-list, for ASP.NET Core, nginx, Express, Spring, IIS and AWS API Gateway.
  • cors --preflight-without-cert: sends the preflight without the client certificate, as the Fetch
    standard does, to catch a server that demands the certificate in the TLS handshake.
  • WebSockets: cors ws(s)://… --origin tries a handshake from each origin; --audit grades
    cross-site WebSocket hijacking (any origin, null, look-alikes, plain http accepted). ws --origin
    sends an Origin header.
  • The app: a CORS… button opens a full check of the current request — preflight, redirects,
    audit, WebSocket origins, and the fix for a chosen server.
  • mock --cors-headers, --cors-methods, --cors-expose and --cors-max-age: a fixed CORS policy
    instead of granting whatever a preflight asks. --cors-star answers * without credentials.
  • mock --cors-fault: deliberately broken CORS — double-origin, preflight-401,
    preflight-redirect, preflight-only, no-vary.
  • A --routes route can carry its own "cors" policy (false, true, or an object), replacing
    --cors for that route.
  • serve --cors-methods and --cors-no-credentials, and profile keys corsHeaders, corsExpose,
    corsMethods, corsMaxAge and corsCredentials.
  • serve --cors logs, once per site, when it replaces an upstream's own CORS headers.

Full Changelog: v1.98.0...v1.99.0

v1.98.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 03:52

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.98.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

More ways to reach a service with a client certificate: seven new commands (call, tls,
crawl, browse, signalr, mqtt, cors), more of curl on send, connection routing options,
gRPC-Web, and OAuth clients that authenticate with the certificate instead of a secret. Nothing
that worked before needs changing; the Changed list covers the few curl options that used to
be refused and now work.

Added

  • run --junit <file>: the results as JUnit XML for a CI test report (Azure DevOps, GitLab,
    Jenkins, GitHub reporters). One test case per request, grouped by folder; failed assertions are
    failures with what arrived instead, a request with no answer is an error, and skipped chain steps
    are skipped. URLs are redacted.
  • JSON Schema assertions: body <path> schema <schema> (or @file), and a schema operator on
    the app's Tests tab. A built-in, offline checker covers the common keywords, local $ref and
    OpenAPI 3.0's nullable; a failure names where and why.
  • import openapi writes a status assertion and, where the response has a JSON schema, a schema
    assertion for each operation, so an imported collection is a contract test.
  • import bruno: a Bruno collection folder, a single .bru file, or Bruno's JSON export. Folders,
    seq order, params, headers, bodies, auth (with inherit resolved) and environments come across;
    assert lines become assertions and post-response variables become captures where they map.
  • Digest authentication: the Digest auth type, send --digest -u user:pass, and Digest from
    Postman, Insomnia and Bruno imports. Only the request's own origin is answered, and never a Basic
    challenge.
  • AWS Signature v4: the AWS Signature v4 auth type, send --aws-sigv4 aws:amz[:region[:service]]
    (curl's spelling) with the key from -u or the AWS_* environment variables, and AWS auth from
    Postman (awsv4), Insomnia (iam) and Bruno imports. Region and service are read from an AWS host
    when left out; only the origin named is signed.
  • HMAC request signing: the HMAC signature auth type and send --hmac. Template signing
    builds the string to sign from placeholders ({method}, {path}, {timestamp}, {nonce},
    {bodySha256}, {header:Name}, …), puts the signature in the header you name as hex, base64 or
    base64url, and can send timestamp and nonce headers it signs too. HTTP Message Signatures
    (RFC 9421, hmac-sha256) and the older HTTP Signatures draft are built in. Only the origin
    named is signed.
  • mcp: ws_exchange and sse_read tools. Each opens a WebSocket or event stream on an allowed
    host with the pinned certificate, gathers what arrives until a count, a time (never past
    --timeout) or the end, and returns it; --max-body bounds the total.
  • mcp --print-config <claude|vscode|cursor>: prints the host configuration block for the options
    given, with file paths made absolute, and exits. Secrets are refused rather than written out.
  • mcp --allow-any: allow every host on purpose. Without --allow or --allow-any, the start-up
    line still warns.
  • serve --allow-framing [<origins>]: let pages be framed by this machine's pages or the origins
    listed. X-Frame-Options and CSP frame-ancestors are replaced. Not part of --browser.
  • serve --open [<path>]: open the browser at the first site once the gateway is listening.
  • certapi call <spec> <operationId>: calls one OpenAPI operation by name, with each --param
    placed where the document puts it (path, query, header, cookie), then checks the status and the
    body against the document's schema. A missing required parameter stops the call; --list lists
    the operations; every send option applies.
  • certapi tls <host[:port]>: a TLS handshake with any service (HTTPS, LDAPS, a database, a
    broker; --starttls for SMTP, IMAP, POP3, FTP, LDAP and PostgreSQL) and what it showed:
    protocol, cipher, ALPN, the chain with each key's SHA-256, trust, and whether a client
    certificate was asked for, with the issuers it accepts.
  • certapi crawl <url>: walks a site's links with the client certificate and reports each page and
    resource, with broken links listed and exit 1 when there are any. Scope, depth, include/exclude,
    robots.txt, parallelism and --mirror <dir> for an offline copy.
  • certapi browse <url>: renders a page in WebView2 with every request sent by certapi with the
    client certificate, then saves a screenshot (--full-page too), a PDF, the rendered DOM, or the
    result of --script. --wait-for <selector> waits for a single-page app; headers go to the
    page's own origin only.
  • certapi signalr <hub-url>: negotiates (following an Azure SignalR redirect), does the JSON hub
    handshake over a WebSocket with the certificate, calls methods (--invoke, --send, --stream)
    and prints the events the hub sends (--on, --count, --seconds).
  • certapi mqtt <broker-url>: an MQTT 3.1.1 / 5.0 client over mqtts:// or wss:// that presents
    the client certificate; subscribe, publish (QoS 0 or 1, retained), and the broker's reason when it
    refuses a connection or a subscription.
  • grpc --grpc-web and --grpc-web-text: gRPC-Web for services behind Envoy, grpcwebproxy,
    UseGrpcWeb or a Connect server. Unary and server-streaming methods; needs --protoset.
  • token --client-auth private_key_jwt: an RFC 7523 client assertion signed by the certificate's
    key (RS256, ES256/384/512) instead of a secret, as Entra ID's certificate credentials expect;
    --assertion-aud sets the audience. --client-auth tls_client_auth (RFC 8705) lets the
    handshake authenticate the client. A token bound to the certificate (cnf.x5t#S256) is reported.
  • token --grant code: browser sign-in with PKCE from the command line, the redirect caught on
    loopback; --authorize-url, --redirect-port, --no-browser.
  • send takes more of curl: -b/--cookie (a string or a Netscape cookie file),
    --data-urlencode, -w/--write-out with curl's variables, -r/--range, -C/--continue-at
    to resume a download, and --max-filesize.
  • certapi cors <url> --origin <o>: checks a URL the way a browser checks a cross-origin request.
    Says whether a preflight is needed and why, sends it as a browser does (no cookies or
    Authorization), sends the request with Origin (GET and HEAD only, unless --actual), and
    lists each CORS rule that passed or failed, the verdict (exit 0 or 1) and the headers a script
    could read. --credentials applies the stricter rules.
  • send --origin <o>: sends the Origin header and says on stderr whether a page on that origin
    could read the response, with and without credentials.
  • mock --cors [<origins>]: the mock answers preflights and sets CORS headers like a server with a
    policy; an origin not listed gets a 403 preflight and no CORS headers.
  • serve --cors-headers and --cors-expose: fixed lists for Access-Control-Allow-Headers and
    Access-Control-Expose-Headers instead of echoing and exposing everything.
  • mcp: a cors_check tool, the same check for an agent, on allowed hosts only.
  • Transport options: --connect-to (send a host's connections elsewhere, port included),
    --interface (a local address or adapter to send from), --unix-socket and --named-pipe (the
    Docker engine API, among others), --pinnedpubkey (curl's public-key pins, checked as well as
    the chain), --proxy-header (headers for the proxy's CONNECT only) and
    --http2-prior-knowledge (h2c).

Changed

  • serve always drops response headers that would leave lasting state on the gateway's own
    origin: Strict-Transport-Security (it ignores ports, so it pinned localhost to https for every
    local tool), Alt-Svc, NEL, Report-To, Reporting-Endpoints, Public-Key-Pins and
    Expect-CT. Without --vhost, where every site shares one origin, Service-Worker-Allowed and
    Clear-Site-Data are dropped too.
  • serve over plaintext removes a CSP's upgrade-insecure-requests and block-all-mixed-content,
    which sent the page's own requests to an https port nothing answers, and drops a cookie's
    Partitioned attribute, which needs Secure.
  • serve --rewrite-location also rewrites the URLs in Link and Content-Location.
  • -b, --cookie, --data-urlencode and -w/--write-out are no longer refused as curl habits
    with another meaning: they now do what curl does.
  • certapi.exe carries the WebView2 loader inside it, for browse.

Full Changelog: v1.97.0...v1.98.0

v1.97.0

Choose a tag to compare

@Real-Fruit-Snacks Real-Fruit-Snacks released this 14 Nov 01:31

Which file do I need?

You want Download
The desktop app ApiTester.App.exe
The command line certapi.exe
HTTP/3 (--http3) with either msquic.dll, saved in the same folder

Both are self-contained: nothing else to install, no .NET needed. Keep them in one folder and the app's update prompt, or certapi update, keeps them current.

With Scoop: scoop install https://github.com/Real-Fruit-Snacks/certapi/releases/download/v1.97.0/certapi.json

Every file's SHA-256 is in SHA256SUMS.txt. The rest are for building from source (the source at this tag, and a dev kit that builds and tests with no network) and a copy of the fuzz wordlist built into certapi.exe.

What's new

Fixes from a security audit of certapi mcp and certapi serve, and a move to .NET 10: .NET 9
reached end of support on 2026-11-10 and gets no more security fixes. Some defaults are stricter;
the Changed list says what a working setup may notice.

Security

  • mcp: the vars argument of run_saved and run_chain can no longer change a saved request's
    scheme, host or port. An agent could send a saved request, with its saved bearer token, API key,
    password or Windows sign-in, to a host of its choosing whenever --allow was missing or listed
    more than one host. A saved request whose host only comes from vars is refused too.
  • mcp: a host refusal names the host only. It used to quote the resolved URL, which could hold a
    secret variable's value.
  • mcp: a Host header that differs from the URL's host, and gRPC host metadata, are refused,
    so a request cannot reach another name on a shared front end through the allow-list.
  • mcp: a certapi.config.json found by walking up from the working directory is no longer read.
    An MCP host picks that directory, and a profile there could turn off certificate checks or add a
    proxy. --config, CERTAPI_CONFIG and the per-user file still apply; the start-up line names
    the file and what it changes, and --insecure prints its own warning.
  • serve: a WebSocket upgrade presents its site's own certificate, trust, revocation and Windows
    sign-in settings. It used the gateway's defaults, so a site set to verify its server was not
    verified for WebSockets under --insecure.
  • serve: --cors with no list (and so --browser) answers only pages on this machine
    (localhost, *.localhost, loopback). It echoed any origin with credentials and answered the
    Private Network Access question, so any web page could use the client certificate.
  • serve: requests and WebSocket upgrades from an origin the gateway does not accept, and
    cross-site browser requests that are not page loads, are refused with 403 before anything is
    forwarded. Only preflights were refused before.
  • serve: a loopback-only gateway answers 421 to a Host that is not a loopback address,
    localhost or a *.localhost name, which stops DNS rebinding.
  • serve: an empty --token is a usage error. It satisfied the token requirement for anyone who
    sent an empty header.
  • serve: --windows-auth cannot be combined with --allow *; a wildcard entry prints a warning.
  • serve: a dynamic target whose host is a configured site connects as that site.
  • serve --record redacts credential fields in JSON and form bodies, sent and received, and
    credential query values in Location and the redirect address.
  • serve --tls: netsh is started from System32 by full path; the gateway's key file moves out of
    the roaming profile and is encrypted for the Windows user; --tls-untrust also removes the copy
    bound in LocalMachine\My.
  • Header values with CR, LF or NUL are refused everywhere a request is built (send, run, mcp,
    serve header rules, routes files and profiles). They were written as extra header lines.
  • mock: a scenario's bodyFile must stay inside the scenario's folder; request bodies over 16 MB,
    requests that take over 30 seconds to arrive, and more than 256 connections at once are dropped.

Fixed

  • mcp no longer exits on a JSON-RPC batch, a line that is not an object, or an unpaired surrogate
    escape. A batch is answered with an array; a malformed message gets a JSON-RPC error.
  • mcp keeps reading while a tool runs: ping and listings are answered at once,
    notifications/cancelled stops the call, and closing stdin ends the process within a few seconds.
  • mcp checks tool arguments against each tool's schema and reports a wrong type or an unknown
    argument as a tool error that names the field.
  • mcp: an unknown tool is JSON-RPC error -32602; a request with an id and a notifications/
    method gets -32601; an id that is not a string or an integer, or a missing "jsonrpc":"2.0",
    is -32600; a byte-order mark before the first line is ignored.
  • serve: a WebSocket upgrade the upstream (or its proxy) refuses now reaches the browser as a
    close with code 1011 and the reason on Windows too; http.sys could drop the frame and reset the
    connection instead.

Added

  • mcp speaks MCP revision 2026-07-28 alongside the handshake revisions (now through 2025-11-25):
    server/discover, the per-request _meta protocol version, -32022 for an unsupported version,
    resultType, ttlMs and cacheScope, per-request log levels, resources/templates/list.
  • mcp --max-body <size> (default 1 MB): a tool result carries at most this much of a response
    body, marked "truncated": true. The rest is never read.

Changed

  • Built on .NET 10 (LTS, supported to November 2028). The self-contained downloads bundle .NET
    runtime 10.0.15; building from source needs the .NET 10 SDK, 10.0.404 or later.
  • The mutation-testing tool is Stryker.NET 5.1.0, the first release that runs on .NET 10.
  • A --noproxy range with host bits set (10.0.0.5/8) is still refused on .NET 10, which would
    otherwise read it as 10.0.0.0/8.
  • mcp --allow takes a bare host name or IP address; an empty value, a scheme, port, path,
    wildcard or comma stops the launch.
  • mcp writes its notes to stderr as well as sending them as log notifications.
  • serve --cors without a list no longer answers public origins: list them, e.g.
    --cors https://app.example.

Full Changelog: v1.96.3...v1.97.0