Allow keys greater than 4096 bit
This commit is contained in:
		@@ -24,8 +24,8 @@ do
 | 
				
			|||||||
        do
 | 
					        do
 | 
				
			||||||
            valid_key=$(ssh-keygen -l -f ${keyfile})
 | 
					            valid_key=$(ssh-keygen -l -f ${keyfile})
 | 
				
			||||||
            if [ "$?" -eq "0" ]; then
 | 
					            if [ "$?" -eq "0" ]; then
 | 
				
			||||||
                if [ $(echo "${valid_key}" | cut -d" " -f1) -ne "4096" ]; then
 | 
					                if [ $(echo "${valid_key}" | cut -d" " -f1) -lt "4096" ]; then
 | 
				
			||||||
                    echo "Key size of key ${keyfile} not equal to 4096. Not adding it to key database." >&2
 | 
					                    echo "Size of key ${keyfile} is less than 4096. Not adding it to key database." >&2
 | 
				
			||||||
                    continue
 | 
					                    continue
 | 
				
			||||||
                fi
 | 
					                fi
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user