Skip to content

v1.98.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 03:52
· 37 commits to main since this release

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