mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: update Dockerfiles and configuration for TLS support across multiple modules
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
+4
-1
@@ -122,8 +122,11 @@ def test_apply_adds_certificate_to_pkcs12_and_jks_keystores(tmp_path) -> None:
|
||||
|
||||
JavaModule().apply(context)
|
||||
|
||||
# The written truststore's trust-only entries are unencrypted (matching
|
||||
# the JDK's own cacerts), so they load with no password at all - the
|
||||
# password a caller would use for a source-of-truth JDK-style store.
|
||||
pkcs12_result = pkcs12.load_pkcs12(
|
||||
(dst / "usr/lib/jvm/java-21/lib/security/cacerts").read_bytes(), b"changeit"
|
||||
(dst / "usr/lib/jvm/java-21/lib/security/cacerts").read_bytes(), None
|
||||
)
|
||||
pkcs12_aliases = {entry.friendly_name for entry in pkcs12_result.additional_certs}
|
||||
assert pkcs12_aliases == {b"already-trusted-ca", b"interdiode-root-ca"}
|
||||
|
||||
Reference in New Issue
Block a user