Skip to content

BlackBeltTechnology/karaf-jasypt-support

Jasypt support for Apache Karaf

This bundle is a helper for Jasypt (http://www.jasypt.org) running on Apache Karaf (http://karaf.apache.org) OSGi environment. The following features are added:

Usage

  • install feature: jasypt-encryption
  • drop bundle into deploy/ directory of Apache Karaf container
  • set environment variable (ENCRYPTION_PASSWORD by default) for encryption password
$ KARAF_HOME/bin/karaf -DENCRYPTION_PASSWORD=password
  • configure default StringEncryptor (not created without configuration!)
    • create hu.blackbelt.karaf.jasypt.services.DefaultStringEncryptorConfig.cfg configuration file in deploy/ directory
    • or create configuration using WebConsole (all options are displayed automatically)
  • (optional) encrypt password (using Karaf command) and replace password in DBCP2 configuration files
...
password=ENC(encrypted_password)
...