Hello guys,
So just an update about this trouble.
I use a batch to call jboss-cli.bat, and a script .cli to initialise my standalone.xml and a property files.
Everything is correct in my properties files (even password with double quotes on it to avoid interperetation with batch)
Here the commande i used :
____________________
set NOPAUSE=true
REM Launch JBOSS CLI to change standalone.xml
set CLI_SCRIPTS="%installPath%\cliScripts"
@echo off
REM create admin user, mandatory for CLI & Security Management
call "%JBOSS_HOME%\bin\add-user.bat" -u appAdmin -p "appadmin"
@echo on
REM create standalone
call "%JBOSS_HOME%\bin\jboss-cli.bat" --properties=%cliPropertiesFile% --file="%CLI_SCRIPTS%\first_install_standalone.cli"
REM create log handler
call "%JBOSS_HOME%\bin\jboss-cli.bat" --properties=%cliPropertiesFile% --file="%CLI_SCRIPTS%\change_log_level.cli"
----------------------------
echo "Create KeyStore Credential Store in data folder"
/subsystem=elytron/credential-store=appKeyStoreCredentialStore:add(modifiable=true,path="appKeyStoreCredentialStore.jceks",
relative-to=jboss.server.data.dir,
credential-reference={clear-text=appadmin}, create=true)
echo "Add password in credential store"
/subsystem=elytron/credential-store=appKeyStoreCredentialStore:add-alias(alias=appDbPasswordAlias, secret-value=${password})
So with elytron-tool.bat, some special caracteres may have some trouble in credential store
Prefer to use wildfly cli and avoid to use theses specials within a script .bat and call jboss-cli.bat earlier :
! and ^ and & and \
Theses caracteres works when i have an interaction directly with jboss-cli.bat with embed server connection
/subsystem=elytron/credential-store=appKeyStoreCredentialStore:add-alias(alias=appDbPasswordAlias, secret-value=
"
#a$%()*+-./:;?b[]{}_~&,=><\|!&\c^")
Thank a lot to JF for the time.