-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Handle Java (and possibly other platforms) which has its own cert store #18
Comments
I know of 4 keystores:
See
For the java & mono keystores, and ca-certificates itself handles the mega bundle & symlinks. Wildcards:
|
Thanks @xnox ! |
At Smallstep we have a package for interacting with (some of) those stores: https://github.com/smallstep/truststore. It's based on mkcert, but adapted for use as a library. It might be useful for this use case. If you miss functionality, we can likely add it 🙂 |
Oh, nice! Thanks @hslatman. Just to be clear, this is a "backlog" issue, I'm not sure when we'll be able to prioritise it. That being said, if anyone reads this and needs this functionality, please comment or leave an emoji. |
+1 this feature. |
@amouat @pnasrat also for java, i think we may need more that one type of java keystore. As I think jdk & jdk-fips images expect keytool certs in different store types possibly? I.e. keytool -importcert -v -trustcacerts -file "cacert.pem" -alias ca -keystore "mySrvTruststore.bks" -provider org.bouncycastle.jce.provider.BouncyCastleProvider -providerpath "bcprov-jdk16-145.jar" -storetype BKS -storepass testtest Possibly nss-db certs too in the future, to basically have equivalent of cert store procedures that others do by hand for other container types. |
Note that eclipse-temurin java image has hooks to allow on-the-fly creation of the java truststore with injected certs. See implementation at I guess we could do something similar in our images entrypoint too, to be compatible. |
Also note this issue on adoptium about handling certs: adoptium/containers#573 |
To add certificates to a Java image you need to use "keytool" e.g:
There are probably other platforms with similar bespoke solutions. In these cases we could add a flag (e.g.
--add-java-cert
) or try to detect if a Java image was being used.The text was updated successfully, but these errors were encountered: