You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ec...@apache.org on 2013/04/15 21:33:55 UTC

svn commit: r1468201 - /accumulo/branches/1.5/bin/generate_monitor_certificate.sh

Author: ecn
Date: Mon Apr 15 19:33:55 2013
New Revision: 1468201

URL: http://svn.apache.org/r1468201
Log:
ACCUMULO-1276 improved password generation

Modified:
    accumulo/branches/1.5/bin/generate_monitor_certificate.sh

Modified: accumulo/branches/1.5/bin/generate_monitor_certificate.sh
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/bin/generate_monitor_certificate.sh?rev=1468201&r1=1468200&r2=1468201&view=diff
==============================================================================
--- accumulo/branches/1.5/bin/generate_monitor_certificate.sh (original)
+++ accumulo/branches/1.5/bin/generate_monitor_certificate.sh Mon Apr 15 19:33:55 2013
@@ -28,8 +28,8 @@ bin="$( cd -P "$( dirname "$SOURCE" )" &
 . "$bin"/config.sh
 
 ALIAS="default"
-KEYPASS=$(cat /dev/random | head -c33 | uuencode -m foo | head -2 | tail +2)
-STOREPASS=$(cat /dev/random | head -c33 | uuencode -m foo | head -2 | tail +2)
+KEYPASS=$(tr -dc '#-~' < /dev/urandom | tr -d '<>' | head -c 20)
+STOREPASS=$(tr -dc '#-~' < /dev/urandom | tr -d '<>' | head -c 20)
 KEYSTOREPATH="$ACCUMULO_HOME/conf/keystore.jks"
 TRUSTSTOREPATH="$ACCUMULO_HOME/conf/cacerts.jks"
 CERTPATH="$ACCUMULO_HOME/conf/server.cer"