diff --git a/templates/requestCertificate.sh.j2 b/templates/requestCertificate.sh.j2 index 75cc3f1..a83d22c 100644 --- a/templates/requestCertificate.sh.j2 +++ b/templates/requestCertificate.sh.j2 @@ -8,7 +8,7 @@ CERTNAME=$(hostname).{{local_domainname}} curl --header "X-Vault-Token: $VAULT_TOKEN" \ --request POST \ --data '{"common_name": "'$CERTNAME'", "ttl": "43800h"}' \ -$VAULT_ADDR/v1/interca/issue/{{vaultStoreName}} > certificateResult.txt +$VAULT_ADDR/v1/interca/issue/{{vaultStoreName}} > certificateResult.txt jq .data.private_key certificateResult.txt | sed "s/\"//g" | sed "s/\\\n/\n/g" > cert.pem jq .data.certificate certificateResult.txt | sed "s/\"//g" | sed "s/\\\n/\n/g" > cert.crt