accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1468201 - /accumulo/branches/1.5/bin/generate_monitor_certificate.sh
Date Mon, 15 Apr 2013 19:33:55 GMT
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"



Mime
View raw message