Skip to content

Commit 31fb4f4

Browse files
committed
fix syntax error
1 parent c839577 commit 31fb4f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/zmsshkeygen

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ ssh-keygen -f ${keyfile} -b 2048 -N '' \
4848
-t ${keytype} -C ${zimbra_server_hostname}
4949

5050
# Starting with OpenSSH 7.8 by default, the key is created with the OpenSSH private key format instead of the OpenSSL PEM format.
51-
# Check the format of KEY, and create KEY in OpenSSL PEM format.
51+
# Check the format of KEY and convert to OpenSSL PEM format.
5252
grep "BEGIN OPENSSH PRIVATE KEY" ${keyfile} > /dev/null 2>&1
5353
if [ $? = 0 ]; then
54-
ssh-keygen -m PEM -f ${keyfile} -b 2048 -N '' \ -t ${keytype} -C ${zimbra_server_hostname}
54+
ssh-keygen -p -m PEM -f ${keyfile} -b 2048 -N '' -t ${keytype} -C ${zimbra_server_hostname}
5555
fi
5656
pubkey=`cat ${keyfile}.pub`
5757

0 commit comments

Comments
 (0)