Fix a bug with private key encryption.
openssl req does not have to generate a private key (which is not encrypted, even if the user wants to) while key is already generated right before.
This commit is contained in:
parent
a842d23d20
commit
6b584b62e3
|
@ -71,11 +71,9 @@ fi
|
||||||
|
|
||||||
# generate csr req
|
# generate csr req
|
||||||
$OPENSSL req \
|
$OPENSSL req \
|
||||||
-new -days 1000 \
|
-new \
|
||||||
-config $CONFFILE \
|
-key $DIR/$cn.key \
|
||||||
-newkey rsa:2048 \
|
-config $CONFFILE \
|
||||||
-nodes \
|
|
||||||
-keyout $DIR/$cn.key \
|
|
||||||
-out $DIR/$cn.csr
|
-out $DIR/$cn.csr
|
||||||
|
|
||||||
# ca sign and generate cert
|
# ca sign and generate cert
|
||||||
|
|
Loading…
Reference in a new issue