JBoss EAP 6 – encrypt password for SecureIdentityLoginModule

Quick snippet on password encryption for the  org.picketbox.datasource.security.SecureIdentityLoginModule  which is relatively version agnostic. From your JBoss directory, run

It’ll output the encrypted password, which you can update your configuration with.

If you get an error, like

It’s most likely because you’ve patched your JBoss (good on you!) at some point. During the patching process, the old JARs get trashed for no readily apparent reason. Search through the .overlays  folder in your system/modules/base  folder and find the most recent version of Picketbox. Update the classpath to point to that version instead, and all will be good, e.g. for JBoss patched to 6.4.18

 

Tagged with: , , ,
Posted in Java, Security

Leave a Reply