One other thing: There is a reason that
KeyStore.load() accepts the password as a
char[] and not as a
String. After you've loaded the key store,
you should clear the password.
You're using Quarkus right? Instead of injecting the password using
@ConfigProperty, try if this works:
If this doesn't work it's no disaster, because presumably you're running this code on a protected server (where the password is available in a configuration file anyway).