Repository navigation
Conversation
Assisted-by: Claude Code (Claude Fable 5.1) Assisted-by: Claude Code (Claude Opus 5.5)
This was referenced Oct 23, 2026
Contributor
|
Would it be better to make jabref trust a system keystore instead so that can be updated without rebuilding jabref? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #576543.
JabRef has a bundled Java trust store,
jablib/src/main/resources/ssl/truststore.jks. At start,jabguiandjabkitcopy this file to~/.local/share/jabref/ssl/truststore.jkswhen there is no copy. Then JabRef uses this copy together with the trust store of its JRE. This change replaces the file inpostPatchwith a trust store thatjre-generate-cacertsmakes from theca-bundle.crtfile ofcacert, with the passwordchangeitof JabRef. The build puts the file intoshare/java/jabref/resources/main/ssland into the four-all.jarfiles inlib. A user who has a copy keeps the previous trust store, because JabRef copies the file only when there is no copy.Warning
AI Disclosure: Claude Code made the code change, the commit message and the first version of this pull request description. Claude Code used Claude Fable 5.1 and Claude Opus 5.5. I examined all of this work. Claude Code also wrote all of nix-cacert-harness. This pull request description is written in ASD-STE100 (Simplified Technical English), examined with memelint in
strictmode.Test
nix-cacert-harness examines the package before and after this change. A local copy of nixpkgs is not necessary. The harness builds JabRef from source with
--force-build, and for this build, approximately 12 GB of space in the build directory is necessary.Harness output: jabref
The harness tests the package with the certificate chains of the eMudhra incident, from https://emudhra.we-have-a-problem.com/ (only the certificates, not the keys). Before this change, each copy of the bundled trust store accepts 7 of the 14 chains (
accepted 7/14). Thus, it accepts the eMudhra intermediate certificates through the Sectigo cross-sign byAAA Certificate Services. After this change, each copy accepts no chain (accepted 0/14). Thetokenizerslibraries in the.jarfiles are for macOS and Windows only, and this change does not change them. In the second part of the output, a small Java test on the JRE of JabRef usesTrustStoreManager.createTruststoreFileIfNotExist, as the launchers do. Then it sends one request to each of four test servers. Before this change, the test connects to the two servers with the AAA chain. After this change, the test connects to no server.Things done
./result/bin/.nixpkgs-reviewon this PR. See nixpkgs-review usage.passthru.tests.