Skip to content

fix(cli): a broken start-URL certificate is reported as security/tls-certificate failing #1259 - #1401

Closed
nc9 wants to merge 2 commits into
mainfrom
fix/tls-start-url-report-1259
Closed

nc9 wants to merge 2 commits into
mainfrom
fix/tls-start-url-report-1259

Conversation

@nc9

@nc9 nc9 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Refs #1259 (PR 1 of 2: the start-URL report; the key and certificate options are #1402)

  • An expired, wrong-host, self-signed or untrusted-chain certificate on the audited URL still ends the run unreachable (exit 5, no score), but the report in the format asked for carries a security/tls-certificate failure with the cause. issues entry in JSON (the real report shape: ruleId, name, description, solution, category, group, severity, and a check with affectedPages, affectedPagesCount, affectedPagesHasMore, legacyValue), <finding> in xml and llm, a line in text.
  • The cause now comes from one handshake in the preflight (the crawl's own probe and sentences, 3 s at most, not past the budget): certificate has expired on <date>, the certificate does not cover <host>, self-signed, a chain that does not verify; a short RSA key is named beside it.
  • The finding is attached only when the cause names a certificate problem. Bun reports a plain-HTTP port, a TLS 1.0/1.1-only server and an Ed25519-only server as "unknown certificate verification error": those stay plain unreachable with no certificate claim (tested with a plain-HTTP port).
  • It honours rule selection: --rule-exclude, [rules] disable and [rule_options] enabled = false suppress it (tested); the run still ends unreachable.
  • pageUrl caveat documented: the URL is the start URL; when it redirected, the certificate problem may be on the host it redirected to.
  • Two classifier gaps found by the local fixtures: ERR_TLS_CERT_ALTNAME_INVALID, unable to get local issuer certificate and the cause sentences for a chain that does not verify were reason code unknown; they are tls now. The private failure classification lacks them (the lead files the private follow-up).
  • Tests: e2e with local TLS servers (expired with a date, wrong host with the fixture root trusted, self-signed, RSA-1024 with the key named, xml and llm, rule-exclude, plain-HTTP port, a closed port), classifier parity lines. Docs: a rule-page section. CHANGELOG. Skill change: none.

nik

…s security/tls-certificate failing, with the cause; TLS runtime error names classified #1259

Signed-off-by: Nik Cubrilovic <[email protected]>
… certificate problem, from the cause probe, with the real issue shape, honouring rule selection #1259

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9 nc9 mentioned this pull request Oct 31, 2026
@nc9

nc9 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor Author

Landed in v0.0.147 as 46f5a936 a5923ed0 via #1412. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.147. Closing this original.

nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant