diff --git a/Makefile b/Makefile index 497f07c..2cd3f04 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ chmod a+x $@ P = cassh -V = 1 +V = 2 PREFIX = /usr/local MANPREFIX = ${PREFIX}/man diff --git a/cassh.sh b/cassh.sh index f48ee96..c1456c8 100644 --- a/cassh.sh +++ b/cassh.sh @@ -19,6 +19,7 @@ Usage: [-V validity_interval] ${0##*/} mkfile authorized_keys [options ...] ${0##*/} mkfile known_hosts [hostnames ...] + ${0##*/} revoke [-qv] file ... EOF exit 1 } @@ -138,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}