Skip to content

Commit

Permalink
[wf] curl encoding in est-curl reenrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Apr 16, 2021
1 parent d281cb4 commit 4410d46
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/est-curl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ jobs:
docker run -v /tmp/certs:/tmp/certs -i --rm --network est curlimages/curl https://est-proxy.est:17443/.well-known/est/simpleenroll --key /tmp/certs/estclient.key.pem --cert /tmp/certs/estclient.crt.pem --cacert /tmp/certs/cacerts.pem --data-binary "@/tmp/certs/estclient.csr" -H "Content-Type:application/pkcs10" -o /tmp/certs/tmp.estclient.p7b --header "Transfer-Encoding: chunked" --verbose
sudo ls -la /tmp/certs
- name: "[ Test ] reenroll certificate with Transfer-Encoding: chunked"
run: |
sudo base64 -d /tmp/certs/tmp.estclient.p7b > /tmp/certs/estclient.der.p7b
sudo openssl pkcs7 -print_certs -inform DER -in /tmp/certs/estclient.der.p7b -out /tmp/certs/estclient.crt
docker run -v /tmp/certs:/tmp/certs -i --rm --network est curlimages/curl https://est-proxy.est:17443/.well-known/est/simplereenroll --key /tmp/certs/estclient.key --cert /tmp/certs/estclient.crt --cacert /tmp/certs/cacerts.pem --data-binary "@/tmp/certs/estclient.csr" -H "Content-Type:application/pkcs10" -o /tmp/certs/estclient.crt.new --header "Transfer-Encoding: chunked" --verbose
sudo ls -la /tmp/certs
- name: "[ * ] collecting test logs"
if: ${{ failure() }}
run: |
Expand Down

0 comments on commit 4410d46

Please sign in to comment.