You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a hard time adding extra certificates to the java cert store. I'm not sure where openjdk (nix expression) get's its trust from, except that there is an environment variable patch for JAVAX_NET_SSL_TRUSTSTORE.
The usual NixOS option security.pki.certificateFiles doesn't seem to effect openjdk and I'd like to avoid overriding pkgs.cacert as that would probably rebuild half the world.
In the non-nix realm, one would do something like keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias <SOMENAME> -file <SOME_CERT_FILE>, which comes with Java, but that gives a keytool error: java.io.FileNotFoundException: cacerts (Read-only file system) because it's probably in the read-only nix store.
So my questions are:
Where is the openjdk trust store located in nix?
How can I add trust?
What would be useful to know about Java and Nix(OS)?
The text was updated successfully, but these errors were encountered:
con-f-use
changed the title
java openjdk trust
Java and Nix(OS) - how to openjdk trust?
Jan 19, 2024
I'm having a hard time adding extra certificates to the java cert store. I'm not sure where openjdk (nix expression) get's its trust from, except that there is an environment variable patch for
JAVAX_NET_SSL_TRUSTSTORE
.The usual NixOS option
security.pki.certificateFiles
doesn't seem to effect openjdk and I'd like to avoid overridingpkgs.cacert
as that would probably rebuild half the world.In the non-nix realm, one would do something like
keytool -keystore cacerts -storepass changeit -noprompt -trustcacerts -importcert -alias <SOMENAME> -file <SOME_CERT_FILE>
, which comes with Java, but that gives akeytool error: java.io.FileNotFoundException: cacerts (Read-only file system)
because it's probably in the read-only nix store.So my questions are:
The text was updated successfully, but these errors were encountered: