Debian has a great mechanism to compile all commonly used CA certificates from Thawte, Let's Encrypt etc. as well as locally installed ones from /usr/local/share/ssl
into one /etc/ssl/certs/java/cacerts
JKS file. That is usually symlinked to $JAVA_HOME/lib/security/cacerts
.
With sdkman I switch between different non-Debian Java versions in ~/.sdkman/candidates/java/current/
which use the cacerts provided by the SDK creator.
Is there some kind of post-inst hook mechanism where I could automatically create a symlink to the Debian cacerts file whenever I switch sdkman Java versions?