Compare commits

...

1 Commits

Author SHA1 Message Date
LukasLenCP e623d7f21a
ed25519 support
My attempt to get ed25519 support for the doors in the script.
Please check function and syntax!
2020-05-21 20:11:56 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ do
ssh-keygen -l -f ${keyfile} &> /dev/null
if [ $? -eq 0 ]; then
key_length=`ssh-keygen -l -f ${keyfile} | cut -d" " -f1`
if ssh-keygen -l -f id_ed25519.pub| cut -d" " -f4 == "(ED25519)"; then
key_length += 3840
if [ ${key_length} -lt 4096 ]; then
echo "Key size of key ${keyfile} not equal to 4096. Not adding it to key database." >&2
continue