Commit 7b3a4e9a authored by Janek Bevendorff's avatar Janek Bevendorff

Fix --no-password

parent d6d96100
......@@ -165,7 +165,7 @@ ensure_ca_base_dir() {
fi
}
# Usage: CA_CERT
# Usage: resolve_ca_chain CA_CERT
resolve_ca_chain() {
local cert_file="$1"
local issuer
......@@ -187,9 +187,9 @@ resolve_ca_chain() {
done
}
# Usage: TYPE OUT_FILE CERT CA_CERT [KEY] [NO_PASSWORD]
# Usage: generate_output_file TYPE OUT_FILE CERT CA_CERT [KEY] [NO_PASSWORD]
generate_output_file() {
if [ -n "$5" ] && [ "$6" -eq 0 ]; then
if [ -n "$5" ] && [ -n "$6" ]; then
local pem="$(cat "$5")"
elif [ -n "$5" ]; then
local extra_param=""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment