Invalid encryption of users present in keys.properties upon activation of password

Solution Verified - Updated -

Issue

When activating encryption in [JBOSSFUSE_ROOT]/etc/org.apache.karaf.jaas.cfg, using basic encryption and keeping all the defaults, users configured through the [JBOSSFUSE_ROOT]/etc/keys.properties get messed up: the public key is encrypted and the roles initially set to the user are lost.

Steps to reproduce:

  1. enable encryption by changing property encryption.enabled=true from the file
etc/org.apache.karaf.jaas.cfg
  1. add a new user by adding the user's public key to "etc/keys.properties" file like:
jluo=AAAAB3NzaC1yc2EAAAABIwAAAQEA5pqXW9pkUDK...pY+Dc8m2lSRueQ==,admin
  1. connect to the container with the user 'jluo' using following command either locally or remotely:
> ssh -p 8101 jluo@localhost

Environment

JBoss Fuse 6.0

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.