Skip to content
Snippets Groups Projects
Commit 52a7a6e1 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Don't output the progress from curl

parent 1c7dca0b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ echo | openssl s_client -connect api.turris.cz:443 -showcerts | awk -v c=-1 '/--
for i in *.pem ; do
# This is a hack a bit, we expect the hostname to be crl\. something. Our CA satisfies this now and if it breaks, we would find out.
openssl x509 -in "$i" -noout -text | grep -o 'http://crl\..*' | xargs curl -# | openssl crl -inform der -out tmp.pem
openssl x509 -in "$i" -noout -text | grep -o 'http://crl\..*' | xargs curl | openssl crl -inform der -out tmp.pem
cat tmp.pem >>out.pem
done
mv out.pem /tmp/crl.pem
......@@ -74,7 +74,7 @@ set +e
(
atsha204cmd file-challenge-response <"$BUFFER" 2>>"$LOGFILE"
cat "$BUFFER"
) | curl -# --compress --cacert "$CERT" --crlfile "$CRL" -T - "$BASEURL$RID" -X POST -f 2>>"$LOGFILE"
) | curl --compress --cacert "$CERT" --crlfile "$CRL" -T - "$BASEURL$RID" -X POST -f 2>>"$LOGFILE"
if [ "$?" = 0 ] ; then
mv "$TMPFILE" /tmp/logs.last.sha1
fi
......
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