Use 3DES instead of simple DES to encrypt private key.
This commit is contained in:
parent
0bb337f56c
commit
a842d23d20
|
@ -64,7 +64,7 @@ create() {
|
||||||
echo -n "Should private key be protected by a passphrase? [y/N] "
|
echo -n "Should private key be protected by a passphrase? [y/N] "
|
||||||
read
|
read
|
||||||
if [ "$REPLY" = "y" ] || [ "REPLY" = "Y" ]; then
|
if [ "$REPLY" = "y" ] || [ "REPLY" = "Y" ]; then
|
||||||
$OPENSSL genrsa -des -out $DIR/$cn.key 2048
|
$OPENSSL genrsa -des3 -out $DIR/$cn.key 2048
|
||||||
else
|
else
|
||||||
$OPENSSL genrsa -out $DIR/$cn.key 2048
|
$OPENSSL genrsa -out $DIR/$cn.key 2048
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue