Commit graph

28 commits

Author SHA1 Message Date
Jérémy Lecour d9f866fc3a typo 2020-05-05 15:06:15 +02:00
Jérémy Lecour fa5a344ef4 Remove "set -e" and add many return code checks 2020-05-05 11:45:11 +02:00
Jérémy Lecour 229aab510a Emit errors if files are missing 2020-05-05 11:30:37 +02:00
Jérémy Lecour 3161e93856 Restore forgotten output redirection
It had been removed temporarily to debug an issue
2020-05-05 10:49:33 +02:00
Jérémy Lecour dfeaf77b9f Extract ask_user_password() function 2020-05-05 10:47:09 +02:00
Jérémy Lecour 706608ca4a Use inline pass phrase arguments
It doesn't seem more or less secure to embed the password as an argument
than an environment variable written at the begining of the line.
2020-05-05 10:46:42 +02:00
Jérémy Lecour bb20053ba0 Simplify openssl commands composition 2020-05-05 09:42:54 +02:00
Jérémy Lecour 8e92d46ecd Let OpenSSL read the password file itself 2020-05-05 09:24:09 +02:00
Jérémy Lecour 165c96ca55 Extract variables for files 2020-05-05 00:28:00 +02:00
Jérémy Lecour 7506003f53 Add --days and --end-date command line options 2020-05-05 00:22:35 +02:00
Jérémy Lecour a30be3872f Extract is_user() and is_group() functions 2020-05-04 23:16:19 +02:00
Jérémy Lecour 09c1a7a579 wording 2020-05-04 23:12:56 +02:00
Jérémy Lecour d8a5d04fd0 Extract function cert_end_date() 2020-05-04 23:12:48 +02:00
Jérémy Lecour 7630d8b182 whitespaces 2020-05-04 23:08:19 +02:00
Jérémy Lecour 857bb4b239 explicit checks on exit code 2020-05-04 23:06:51 +02:00
Jérémy Lecour df6d06d848 Add option to revoke the existing certificate when creating one. 2020-05-04 23:02:48 +02:00
Jérémy Lecour a9b2fdd832 verify_ca_password() looks for a previously set password and verifies it 2020-05-04 18:55:10 +02:00
Jérémy Lecour 21182a8dcf CA key length is configurable (minimum 4096) 2020-05-04 18:53:14 +02:00
Jérémy Lecour b03e77d307 More readable variable names 2020-05-04 18:16:39 +02:00
Jérémy Lecour 420fcddb90 whitespaces and if/then normalization 2020-05-04 18:07:20 +02:00
Jérémy Lecour f63caa0779 fix variable name 2020-05-04 17:58:13 +02:00
Jérémy Lecour 1443df56bc Rename internal function usage() to show_usage() 2020-05-04 17:44:01 +02:00
Jérémy Lecour 48b282c2df Add a version number and version command 2020-05-04 17:43:09 +02:00
Jérémy Lecour 536de976cc Check on $USER was always true 2020-05-04 17:42:01 +02:00
Jérémy Lecour 921cba15b6 accept a password file 2020-05-04 14:21:58 +02:00
Jérémy Lecour f4e53c374a ask for CA password before user password 2020-04-30 16:00:34 +02:00
Victor LABORIE b3dcc3ac13 Replace getopts by manual parsing and remove set -u 2019-03-11 11:07:05 +01:00
Victor LABORIE 69948226de Strip .sh extension from shellpki script 2019-03-06 13:42:18 +01:00
Renamed from shellpki.sh (Browse further)