This commit is contained in:
parent
d5b1958a43
commit
298122f658
|
@ -8,7 +8,7 @@ CERTNAME=$(hostname).{{local_domainname}}
|
||||||
curl --header "X-Vault-Token: $VAULT_TOKEN" \
|
curl --header "X-Vault-Token: $VAULT_TOKEN" \
|
||||||
--request POST \
|
--request POST \
|
||||||
--data '{"common_name": "'$CERTNAME'", "ttl": "43800h"}' \
|
--data '{"common_name": "'$CERTNAME'", "ttl": "43800h"}' \
|
||||||
$VAULT_ADDR/v1/rootca_store/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.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
|
jq .data.certificate certificateResult.txt | sed "s/\"//g" | sed "s/\\\n/\n/g" > cert.crt
|
||||||
|
|
Loading…
Reference in New Issue