Skip to content
Snippets Groups Projects
Commit a5123297 authored by Pierre Ozoux's avatar Pierre Ozoux
Browse files

Fixes mutliline reading

parent 10cc5a44
No related branches found
No related tags found
No related merge requests found
......@@ -206,18 +206,9 @@ function generate_certificate () {
echo ""
info "You should have received a certificate."
info "Please paste your certificate now:"
IFS= read -d '' -n 1 certificate
while IFS= read -d '' -n 1 -t 2 c
do
certificate+=$c
done
if [ "${arg_d}" = "1" ]; then
echo ${certificate}
fi
info "Please paste your certificate now: (finish with ctrl-d)"
echo ${certificate} > ${TLS_FOLDER}/CSR/${arg_u}.crt
cat > ${TLS_FOLDER}/CSR/${arg_u}.crt
info "Concat certificate, CA and key into pem file."
cat ${TLS_FOLDER}/CSR/${arg_u}.crt /data/indiehosters/scripts/sub.class2.server.ca.pem /data/indiehosters/scripts/ca.pem ${TLS_FOLDER}/CSR/${arg_u}.key > ${TLS_FOLDER}/${arg_u}.pem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment