Skip to content

Commit 7dffe65

Browse files
committed
fix: Check CSR/CRT option
1 parent b0e68e7 commit 7dffe65

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sslcert-cli

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
set -euo pipefail
1111

12-
VERSION="1.1.0"
12+
VERSION="1.1.1"
1313

1414
BASE_DIR="$(dirname $(dirname $(realpath "${0}")))"
1515

@@ -25,7 +25,7 @@ Create SSL certificate files such as a private key, CSR, and CRT.
2525
Usage:
2626
$(basename ${0}) [-f] [-o OUTPUT_DIR] [-l KEY_BIT_LENGTH] [-p KEY_PASS_PHRASE] [-s SUBJECT] [-S] [-A SUBJECT_ALT_NAMES] [-D EXPIRE_DAYS] -n FQDN
2727
$(basename ${0}) -c FQDN_CSR_FILE
28-
$(basename ${0}) -c FQDN_CRT_FILE
28+
$(basename ${0}) -C FQDN_CRT_FILE
2929
3030
Default options:
3131
-o Output directory (default: FQDN/YYYY-MM-DD/)
@@ -60,7 +60,7 @@ Examples:
6060
$(basename ${0}) -c example.org.csr
6161
6262
Check CRT file:
63-
$(basename ${0}) -c example.org.crt
63+
$(basename ${0}) -C example.org.crt
6464
6565
Server configuration examples:
6666
Apache:
@@ -198,13 +198,13 @@ main() {
198198
["SUBJECT_ALT_NAMES"]=""
199199
)
200200

201-
while getopts cC:Sfn:o:p:s:l:D:A:h OPT; do
201+
while getopts c:C:Sfn:o:p:s:l:D:A:h OPT; do
202202
case "${OPT}" in
203203
"c" )
204204
CMD_OPTIONS["MODE"]="csr_check"
205205
CMD_OPTIONS["CHECK_FILE"]="${OPTARG}"
206206
;;
207-
"c" )
207+
"C" )
208208
CMD_OPTIONS["MODE"]="crt_check"
209209
CMD_OPTIONS["CHECK_FILE"]="${OPTARG}"
210210
;;

0 commit comments

Comments
 (0)