summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kotes <andreas.kotes@nokia.com>2014-04-10 10:45:04 +0200
committerAndreas Kotes <andreas.kotes@nokia.com>2014-04-10 10:45:04 +0200
commit4e3e90f5811d68a002a80d7fe1dcfc3852498e16 (patch)
tree0958628ddb19ad7ae08c219cbb02e6a81ba1f8a3
parent35feadf586c9492005f71ce2f03d917f7a57a4eb (diff)
request 4096 instead of 2048 bit
-rwxr-xr-xvchat-keygen4
1 files changed, 2 insertions, 2 deletions
diff --git a/vchat-keygen b/vchat-keygen
index a11a6ae..91fcbba 100755
--- a/vchat-keygen
+++ b/vchat-keygen
@@ -29,7 +29,7 @@ if [ ! -e $KEYBASE.key ]; then
29 echo "vchat-keygen: generating RSA key $KEYBASE.key" 29 echo "vchat-keygen: generating RSA key $KEYBASE.key"
30 echo "vchat-keygen: please set passphrase for local security" 30 echo "vchat-keygen: please set passphrase for local security"
31 umask 0077 31 umask 0077
32 openssl genrsa -des3 -out $KEYBASE.key 2048 32 openssl genrsa -des3 -out $KEYBASE.key 4096
33else 33else
34 echo "vchat-keygen: private key $KEYBASE.key exists" 34 echo "vchat-keygen: private key $KEYBASE.key exists"
35fi 35fi
@@ -40,7 +40,7 @@ fi
40 echo "vchat-keygen: generating config-file for self-signing $KEYBASE.ca.keyconf" 40 echo "vchat-keygen: generating config-file for self-signing $KEYBASE.ca.keyconf"
41 cat >$KEYBASE.ca.keyconf <<EOT 41 cat >$KEYBASE.ca.keyconf <<EOT
42[ req ] 42[ req ]
43default_bits = 2048 43default_bits = 4096
44default_keyfile = user.key 44default_keyfile = user.key
45distinguished_name = req_distinguished_name 45distinguished_name = req_distinguished_name
46string_mask = nombstr 46string_mask = nombstr