Skip to content

[Backport staging-next-26.05] openjdk: generate cacerts from cacert for JDK 11+ - #576772

Merged
vcunat merged 1 commit into
staging-next-26.05from
backport-576518-to-staging-next-26.05
Oct 23, 2026
Merged

vcunat merged 1 commit into
staging-next-26.05from
backport-576518-to-staging-next-26.05

Conversation

@nixpkgs-ci

@nixpkgs-ci nixpkgs-ci Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Bot-based backport to staging-next-26.05, triggered by a label in #576518.

Before merging, ensure that this backport is acceptable for the release.

Even as a non-committer, if you find that it is not acceptable, leave a comment.

Tip

If you maintain all packages touched by this pull request, and they are all located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this PR using the nixpkgs-merge-bot.

JDK 8 already builds its cacerts from cacert. JDK 11 and later shipped
the CA list that comes with the OpenJDK source. That list does not get
the cacert updates, for example the removal of distrusted roots.

Generate the keystore with the bootstrap keytool before configure and
give it to --with-cacerts-file. The file goes into the java.base jmod,
so jlink images such as jre_minimal also use it.

Write a PKCS12 store without a password, like upstream. The JDK opens
cacerts without a password, so it cannot read certificates that a
password protects.

Assisted-by: Claude Code (claude-opus-5)
(cherry picked from commit b1e20b2)
@nixpkgs-ci nixpkgs-ci Bot added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Oct 21, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from zimbatm October 21, 2026 10:34
@nixpkgs-ci
nixpkgs-ci Bot requested review from a team and Infinidoge October 21, 2026 10:40
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. llm-assisted Contributions that include code generation with LLMs 6.topic: java Including JDK, tooling, other languages, other VMs 4.workflow: backport This targets a stable branch labels Oct 21, 2026
@vcunat
vcunat added this pull request to the merge queue Oct 23, 2026
Merged via the queue into staging-next-26.05 with commit c49b26b Oct 23, 2026
35 checks passed
@vcunat
vcunat deleted the backport-576518-to-staging-next-26.05 branch October 23, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 4.workflow: backport This targets a stable branch 6.topic: java Including JDK, tooling, other languages, other VMs 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 1001-2500 This PR causes many rebuilds on Linux and should target the staging branches. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants