From 31e3cd678bd79ac96a37a922bd932773e1894778 Mon Sep 17 00:00:00 2001 From: andrewheberle Date: Tue, 15 May 2018 22:40:23 +0800 Subject: [PATCH] Use fullchain rather than cat of cer and ca --- deploy/vmwareuag.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/vmwareuag.sh b/deploy/vmwareuag.sh index bf16aeb7..2f246a83 100644 --- a/deploy/vmwareuag.sh +++ b/deploy/vmwareuag.sh @@ -83,9 +83,8 @@ vmwareuag_deploy() { # Set variables for later use _user="${Le_Deploy_vmwareuag_username}:${Le_Deploy_vmwareuag_password}" _contenttype="Content-Type: application/json" - # shellcheck disable=SC2002 - _privatekeypem="$(cat "${_ckey}" | awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}')" - _certchainpem="$(cat "${_ccert}" "${_cca}" | awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}')" + _privatekeypem="$(awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' <"${_ckey}")" + _certchainpem="$(awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' <"${_cfullchain}")" _port="${Le_Deploy_vmwareuag_port}" _path="/rest/v1/config/certs/ssl/end_user"