base64 password for wildfly domain controller communication

Using wildfly in domain mode with additional host controller on different servers, it is required an user to authenticate the HC (host controller) to DC (domain controller). This is configured in the host.xml of HC server, the password is base64 encoded, see the example:

        <security-realm name="ManagementRealm">
                <secret value="YWRtaW4xMjNA"/>

    <remote host="${jboss.domain.master.address}" port="${jboss.domain.master.port:9999}" security-realm="ManagementRealm" username="admin2" />

If you do not know the base64 of a password, use the base64 linux command to convert the plain text password, the echo -n parameter, doesn’t print the carriage return char. See the example for a password: admin123@

$ echo -n "admin123@" | base64 

This is useful in cases where the command is invoked in non interactive mode, as it doesn’t print the base64 password.



Atualizado em:

Deixe um comentário