Commit b6347def authored by Łukasz Nowak's avatar Łukasz Nowak

caddy-frontend: Use --upload-file for curl

It does -X PUT + --data-binary @file.
parent 01d7e9d0
...@@ -131,7 +131,7 @@ Example sessions is:: ...@@ -131,7 +131,7 @@ Example sessions is::
cat certificate.pem ca.pem key.pem > bundle.pem cat certificate.pem ca.pem key.pem > bundle.pem
curl -g -X PUT --cacert "${frontend_name}.ca.crt" --crlfile "${frontend_name}.crl" --data-binary @bundle.pem master-key-upload-url+authtoken curl -g --upload-file bundle.pem --cacert "${frontend_name}.ca.crt" --crlfile "${frontend_name}.crl" master-key-upload-url+authtoken
This replaces old request parameters: This replaces old request parameters:
...@@ -159,7 +159,7 @@ Example sessions is:: ...@@ -159,7 +159,7 @@ Example sessions is::
cat certificate.pem ca.pem key.pem > bundle.pem cat certificate.pem ca.pem key.pem > bundle.pem
curl -g -X PUT --cacert "${frontend_name}.ca.crt" --crlfile "${frontend_name}.crl" --data-binary @bundle.pem key-upload-url+authtoken curl -g --upload-file bundle.pem --cacert "${frontend_name}.ca.crt" --crlfile "${frontend_name}.crl" key-upload-url+authtoken
This replaces old request parameters: This replaces old request parameters:
......
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