Skip to content
Snippets Groups Projects
Commit 69421bf6 authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Get rid of line continuations, makes problems with some shells

parent 0480fbb9
No related branches found
No related tags found
No related merge requests found
......@@ -25,15 +25,11 @@ for n in "$result" "$config"; do
touch "$n" || flee "Error creating temporary file ($n)." 253
done
echo -e "default_bits=2048\ndistinguished_name=rdn\nprompt=no\n[rdn]\ncommonName=dummy" \
> "$config"
echo -e "default_bits=2048\ndistinguished_name=rdn\nprompt=no\n[rdn]\ncommonName=dummy" > "$config"
openssl req -new -nodes -batch -keyout "$key" -out "$csr" -config "$config" \
|| flee "Error generating key/certificate request." 252
openssl req -new -nodes -batch -keyout "$key" -out "$csr" -config "$config" || flee "Error generating key/certificate request." 252
curl --progress-bar --request POST --data-binary '@-' "$url?name=$client&password=$password" \
< "$csr" \
> "$result"
curl --progress-bar --request POST --data-binary '@-' "$url?name=$client&password=$password" < "$csr" > "$result"
case $(<$result) in '-----BEGIN CERTIFICATE-----'*)
mv "$result" "$cert"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment