Commit Graph

14 Commits

Author SHA1 Message Date
Lucas 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
Lucas 09e8f9650d Add revoke to usage, missed in 9e75968acc 2022-06-06 23:55:28 +00:00
Lucas 70f4a1b190 Rename serial.txt -> ca_serial.txt 2022-04-20 16:45:47 +00:00
Lucas 9e75968acc Add revoke command 2022-04-20 16:44:37 +00:00
Lucas 24522541ad Start serial from 1, as 0 can't be revoked 2022-04-20 16:11:34 +00:00
Lucas 7b1e34f625 Refactor: join strings in shell instead of relying on paste 2022-04-20 12:47:40 +00:00
Lucas e0bc09679e - ssh-keygen will fail hard if it doesn't find what it needs, even when
quiet
- Don't find "$PATH_PUBKEYS_DIR/" if it doesn't exist
- Retrieve CA comment only inside find, when it's really needed
- Quiet down ssh-keygen in get_ca_sk_comment_from_pk if ca.pub is not
  present
2022-04-19 04:05:49 +00:00
Lucas d630c83ade Make mkfile accept multiple parameters 2022-04-19 03:49:02 +00:00
Lucas cfd97ff74d Rewrite token formatter engine 2022-04-19 03:41:36 +00:00
Lucas e7aeadfa32 Rename get_ca_comment_from_sk -> get_ca_sk_comment_from_pk
- Better explain what it does
- Don't fallback to public key fingerprint in function
- Use "cassh" as the fallback if the comment is empty
- Adjust manpage
2022-04-19 03:41:36 +00:00
Lucas 497363b31b Make serial a simple counter
While at it, error out when ssh-keygen fails, not after writing the
serial.
2022-04-19 03:41:28 +00:00
Lucas be8e55bb06 Sync usage with reality 2022-04-18 02:51:33 +00:00
Lucas 36964accdc Use variables for paths 2022-04-11 23:40:43 +00:00
Lucas df41cacbba Initial import 2022-04-07 13:48:50 +00:00