I'm attempting to configure the Active Directory Plugin programmatically in a Packer template and it appears I'm unable to select the "JDK_TRUSTSTORE" when using the available ActiveDirectorySecurityRealm constructors.
For example, doing this:
Results in a new AD Domain being added, but it's still listed as "(Unsecure) Trust all Certificates" even though I passed in a setting that should pick the "JDK TrustStore".
It looks like the constructor is ignoring the passed in TlsConfiguration object and always choosing TRUST_ALL_CERTIFICATES regardless of what the user passes in.
It looks like this constructor was introduced here: