Compare commits

..

3 Commits
v1 ... main

Author SHA1 Message Date
cbdede3433 Release v2 2022-09-03 14:02:37 +00:00
fb6454a300 Sort find output and avoid duplicated /
Some find implementations will produce results like "dir//a" if given
"find dir/".
2022-09-03 13:57:43 +00:00
09e8f9650d Add revoke to usage, missed in 9e75968acc 2022-06-06 23:55:28 +00:00
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@
chmod a+x $@ chmod a+x $@
P = cassh P = cassh
V = 1 V = 2
PREFIX = /usr/local PREFIX = /usr/local
MANPREFIX = ${PREFIX}/man MANPREFIX = ${PREFIX}/man

View File

@ -19,6 +19,7 @@ Usage:
[-V validity_interval] [-V validity_interval]
${0##*/} mkfile authorized_keys [options ...] ${0##*/} mkfile authorized_keys [options ...]
${0##*/} mkfile known_hosts [hostnames ...] ${0##*/} mkfile known_hosts [hostnames ...]
${0##*/} revoke [-qv] file ...
EOF EOF
exit 1 exit 1
} }
@ -138,7 +139,8 @@ main_issue()
if [ ! -d "$PATH_PUBKEYS_DIR" ]; then if [ ! -d "$PATH_PUBKEYS_DIR" ]; then
exit 0 exit 0
fi 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=$(get_ca_sk_comment_from_pk "$PATH_CA_PUB")
: ${ca_comment:=cassh} : ${ca_comment:=cassh}