- The trust-store element in wildfly-config.xml like below does not work if we set PROVIDER_URL and security credentials in ejb client code .
----------
<authentication-client xmlns="urn:elytron:1.0.1">
<key-stores>
.
.
<key-store name="ca" type="jks">
<file name="/Truststore_PATH/truststore.jks"/>
<key-store-clear-password password="password" />
</key-store>
</key-stores>
<ssl-context-rules>
<rule use-ssl-context="default" />
</ssl-context-rules>
<ssl-contexts>
<ssl-context name="default">
<trust-store key-store-name="ca" />
</ssl-context>
</ssl-contexts>
.
.
.
.
</authentication-client>
-----------
- I attached a reproducer with wildfly-config.xml .
- The attached testcase works if we comment out below three lines in the client code .
----------
props.put(Context.PROVIDER_URL, String.format("%s://%s:%d", "remote+https", host, port));
props.put(Context.SECURITY_PRINCIPAL, "testuser");
props.put(Context.SECURITY_CREDENTIALS, "testuser123!");
----------