Goal
I would like to setup SSL/TLS in Datameer and want to use strong passwords that contain special characters such as: !@#$% for the values of jetty.keystore
and jetty.keymanager.
Learn
Datameer offers passwords obfuscation via the standard jetty tool. Please refer to our Secure Password Obfuscation article for more details.
Sometimes, when several special characters are used in a password, the Command Line Interface(CLI) running from your Terminal might not read the command properly.
For Example:
[datameer@host]$ java -cp lib/jetty-util-* org.eclipse.jetty.util.security.Password test!@#$%
bash: !@#$%: event not found
To avoid this issue, the password should be quoted with single quotes while running the CLI command as shown below:
[datameer@host]$ java -cp lib/jetty-util-* org.eclipse.jetty.util.security.Password 'test!@#$%'
2018-06-14 04:15:32.822:INFO::main: Logging initialized @215ms
test!@#$%
OBF:1jgu1gao1ivj1os3127z1op71ir31g721jcg
MD5:e53260513932ad3a895a994d27491f12
It is also a good idea to validate the obfuscated(OBF) values, by decoding the passwords back into plain text format.
An example of decoding is shown below:
[datameer@host]$ java -cp lib/jetty-util-* org.eclipse.jetty.util.security.Password OBF:1jgu1gao1ivj1os3127z1op71ir31g721jcg
2018-06-14 04:15:42.848:INFO::main: Logging initialized @210ms
test!@#$%
OBF:1jgu1gao1ivj1os3127z1op71ir31g721jcg
MD5:0d080aeb2b25a4988fe6b5edf8fa1174
Comments
0 comments
Please sign in to leave a comment.