Skip to content

Commit

Permalink
Merge pull request #5 from devilbox/release-0.2
Browse files Browse the repository at this point in the history
Fixed trailing newline in ssl cert generation
  • Loading branch information
cytopia authored May 2, 2018
2 parents 48d4971 + c6dd565 commit 7545b05
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/ca-gen
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DEF_VERBOSE=


print_version() {
echo "${NAME} v0.1"
echo "${NAME} v0.2"
}
print_help() {
echo "USAGE: ${NAME} -n CN [-kdcslouev] <keyfile> <crtfile>"
Expand Down
8 changes: 4 additions & 4 deletions bin/cert-gen
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DEF_VERBOSE=


print_version() {
echo "${NAME} v0.1"
echo "${NAME} v0.2"
}
print_help() {
echo "USAGE: ${NAME} -n CN [-kdcsloueav] <ca-key> <ca-crt> <key> <csr> <crt>"
Expand Down Expand Up @@ -224,7 +224,7 @@ fi
###

# Command
cmd=" openssl req \
cmd="openssl req \
-newkey rsa:${DEF_KEYSIZE} \
-nodes \
-extensions v3_req \
Expand Down Expand Up @@ -256,10 +256,10 @@ fi

# Command
# shellcheck disable=SC1117
cmd=" openssl x509 \
cmd="openssl x509 \
-req \
-extensions v3_req \
-extfile <(printf '[ req ]\nreq_extensions = v3_req\n[ v3_req ]\nsubjectAltName=${ALT_NAMES}'\n) \
-extfile <(printf '[ req ]\nreq_extensions = v3_req\n[ v3_req ]\nsubjectAltName=${ALT_NAMES}\n') \
-days ${DEF_DAYS} \
-in ${CSR_FILE} \
-CA ${CA_CRT_FILE} \
Expand Down

0 comments on commit 7545b05

Please sign in to comment.