Discussion:
How to pass keystore password to TomEE for PasswordCipher
sudhakarvm
2018-06-22 08:48:47 UTC
Permalink
I have implemented PasswordCipher to encrypt and decrypt the DB password
using AES algorithm. I want to store my AES key in a keystore or in a
secured place. If I store in a keystore then I need to pass the keystore
password. What is the best way to pass the keystore password.



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Romain Manni-Bucau
2018-06-22 09:35:49 UTC
Permalink
Hi,

you can use an environment var or a system property for that.

Alternatively you can use another resource or service in tomee.xml which is
configured as usual and injected into the datasource (PasswordCipher =
$myCipher or PasswordCipher = @myCipher).

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>
Post by sudhakarvm
I have implemented PasswordCipher to encrypt and decrypt the DB password
using AES algorithm. I want to store my AES key in a keystore or in a
secured place. If I store in a keystore then I need to pass the keystore
password. What is the best way to pass the keystore password.
--
http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Loading...