diff --git a/cassh.sh b/cassh.sh index 37c8978..c1456c8 100644 --- a/cassh.sh +++ b/cassh.sh @@ -139,7 +139,8 @@ main_issue() if [ ! -d "$PATH_PUBKEYS_DIR" ]; then exit 0 fi - find "$PATH_PUBKEYS_DIR/" -type f -name '*.pub' ! -name '*-cert.pub' | { + find "$PATH_PUBKEYS_DIR" -type f -name '*.pub' ! -name '*-cert.pub' | + sort | { ca_comment=$(get_ca_sk_comment_from_pk "$PATH_CA_PUB") : ${ca_comment:=cassh}