s
This commit is contained in:
		
							parent
							
								
									298122f658
								
							
						
					
					
						commit
						0d76083a9a
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user