Skip to content

nmap: remove vendored ncat CA bundle - #576568

Merged
dasJ merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-nmap
Oct 21, 2026
Merged

dasJ merged 1 commit into
NixOS:masterfrom
zimbatm:cacert-nmap

Conversation

@zimbatm

@zimbatm zimbatm commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

ncat loads the OpenSSL default verify paths and then also share/ncat/ca-bundle.crt (123 roots, stale, trusts AAA Certificate Services). The trust store is the union of both. Thus an update of cacert, or SSL_CERT_FILE / NIX_SSL_CERT_FILE, cannot remove a root.

Remove the bundle. ncat ignores the load failure and uses only the system store. NSE does not verify certificates and does not use it.

Tested on x86_64-linux with ncat -v --ssl-verify example.com 443: with SSL_CERT_FILE or NIX_SSL_CERT_FILE set to one unrelated root, the old ncat still connects (through its bundle) and the new one fails with "unable to get local issuer certificate"; with the default store both connect. strace shows the bundle is no longer read. pkgsStatic.nmap builds.

Related to: #576485
Related to: #576541

Assisted-by: Claude Code (claude-opus-5)

Things done

ncat loads the OpenSSL default verify paths and then also
share/ncat/ca-bundle.crt (123 roots, stale, trusts AAA Certificate
Services). The trust store is the union of both. Thus an update of
cacert, or SSL_CERT_FILE / NIX_SSL_CERT_FILE, cannot remove a root.

Remove the bundle. ncat ignores the load failure and uses only the
system store. NSE does not verify certificates and does not use it.

Part of NixOS#576541.

Assisted-by: Claude Code (claude-opus-5)
@zimbatm zimbatm mentioned this pull request Oct 20, 2026
66 of 95 tasks
@nixpkgs-ci
nixpkgs-ci Bot requested review from fpletz and thoughtpolice October 20, 2026 22:17
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". llm-assisted Contributions that include code generation with LLMs labels Oct 20, 2026
@zimbatm zimbatm added the backport release-26.05 Backport PR automatically label Oct 20, 2026
@dasJ
dasJ added this pull request to the merge queue Oct 21, 2026
Merged via the queue into NixOS:master with commit cec8f72 Oct 21, 2026
33 checks passed
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-26.05:

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. backport release-26.05 Backport PR automatically llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants