InvalidKeyException while trying to store password in Tomcat Vault

Solution Verified - Updated -


  • We see the following exception while trying to store a password in Tomcat Vault: PBOX000128: Unable to encrypt data
        at org.apache.tomcat.vault.VaultSession.addSecuredAttribute(
        at org.apache.tomcat.vault.VaultTool.execute(
        at org.apache.tomcat.vault.VaultTool.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.jboss.modules.Main.main(
Caused by: Illegal key size or default parameters
        at javax.crypto.Cipher.checkCryptoPerm(
        at javax.crypto.Cipher.implInit(
        at javax.crypto.Cipher.chooseProvider(
        at javax.crypto.Cipher.init(
        at javax.crypto.Cipher.init(
        at org.apache.tomcat.vault.util.EncryptionUtil.encrypt(
        ... 9 more


  • JBoss Enterprise Web Server (JWS) 3.1.0+
    • Tomcat Vault

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In