Syntax: no space before ":"
This commit is contained in:
parent
6d71a5a177
commit
a640892ecb
8
shellpki
8
shellpki
|
@ -65,7 +65,7 @@ List all certificates :
|
||||||
${0} list <options>
|
${0} list <options>
|
||||||
|
|
||||||
Options
|
Options
|
||||||
-a, --all list all certificates : valid and revoked ones
|
-a, --all list all certificates: valid and revoked ones
|
||||||
-v, --valid list all valid certificates
|
-v, --valid list all valid certificates
|
||||||
-r, --revoked list all revoked certificates
|
-r, --revoked list all revoked certificates
|
||||||
|
|
||||||
|
@ -797,7 +797,7 @@ revoke() {
|
||||||
crt_file="${CRT_DIR}/${cn}.crt"
|
crt_file="${CRT_DIR}/${cn}.crt"
|
||||||
# check if CRT exists
|
# check if CRT exists
|
||||||
if [ ! -f "${crt_file}" ]; then
|
if [ ! -f "${crt_file}" ]; then
|
||||||
error "Unknow CN : ${cn} (\`${crt_file}' not found)"
|
error "Unknow CN: ${cn} (\`${crt_file}' not found)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# check if CRT is a valid
|
# check if CRT is a valid
|
||||||
|
@ -886,7 +886,7 @@ cert_end_date() {
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
# default expiration alert
|
# default expiration alert
|
||||||
# TODO : permit override with parameters
|
# TODO: permit override with parameters
|
||||||
min_day=90
|
min_day=90
|
||||||
cur_epoch=$(date -u +'%s')
|
cur_epoch=$(date -u +'%s')
|
||||||
|
|
||||||
|
@ -917,7 +917,7 @@ main() {
|
||||||
SYSTEM=$(uname | tr '[:upper:]' '[:lower:]')
|
SYSTEM=$(uname | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
# default config
|
# default config
|
||||||
# TODO : override with /etc/default/shellpki
|
# TODO: override with /etc/default/shellpki
|
||||||
CONF_FILE="/etc/shellpki/openssl.cnf"
|
CONF_FILE="/etc/shellpki/openssl.cnf"
|
||||||
|
|
||||||
if [ "$(uname)" = "OpenBSD" ]; then
|
if [ "$(uname)" = "OpenBSD" ]; then
|
||||||
|
|
Loading…
Reference in a new issue