aboutsummaryrefslogtreecommitdiffstats
path: root/parseCertServiceResponse.sh
blob: dff867fa450996e958ac0dc0f1458c5758a36536 (plain)
1
2
3
4
#!/bin/bash
read -r RESPONSE
echo "$RESPONSE" | jq -r '.certificateChain[]' > ./compose-resources/certs-from-curl/$1-cert.pem
echo "$RESPONSE" | jq -r '.trustedCertificates[]' > ./compose-resources/certs-from-curl/$1-cacert.pem