Mask password in wildfly-config.xml

Solution Verified - Updated -

Issue

  • Getting COM00501: Expected padding when using elytron-tool.sh to mask credential store password in wildfly-config.xml:
elytron-tool.sh mask --salt 1234abcd --iteration 100 --secret myClearTextPwd
  • I updated the protection-parameter-credentials to use masked-password :
<masked-password iteration-count="100" salt="12345678" masked-password="Nym2s/dssMrabfdIG"
  • I am getting the error:
java.lang.ExceptionInInitializerError: org.wildfly.common.codec.DecodeException: COM00501: Expected padding: COM00501: Expected padding

Environment

  • Red Hat JBoss Enterprise Application Platform (JBoss EAP)
    • 7.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content