From a4dc84de5374ba99ad99a289b92a3ebe9c8951fe Mon Sep 17 00:00:00 2001 From: PCF Developer <pcfuser@labbuildr.com> Date: Tue, 29 Jan 2019 20:38:24 +0100 Subject: [PATCH] certs error --- deploy_pcf-opsman.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy_pcf-opsman.ps1 b/deploy_pcf-opsman.ps1 index a37b403..ced7c5a 100644 --- a/deploy_pcf-opsman.ps1 +++ b/deploy_pcf-opsman.ps1 @@ -215,11 +215,12 @@ if (!(test-path -Path "$($HOME)/opsman.pub")) { Pop-Location Break } -if (!(test-path -Path "$($HOME)/$($PCF_SUBDOMAIN_NAME).$($dnsdomain).crt")) { - write-host "Required$($HOME)/$($PCF_SUBDOMAIN_NAME).$($dnsdomain).crt not found. +if (!(test-path -Path "$($HOME)/$($PCF_SUBDOMAIN_NAME).$($location).$($dnsdomain).crt")) { + write-host "Required$($HOME)/$($PCF_SUBDOMAIN_NAME).$($location).$($dnsdomain).crt not found. Now Generating Self Signed Certificates " - $command= "$PSScriptRoot/scripts/create_certs.ps1 -PCF_SUBDOMAIN_NAME $PCF_SUBDOMAIN_NAME -PCF_DOMAIN_NAME $dnsdomain" + $command= "$PSScriptRoot/scripts/create_certs.ps1 -PCF_SUBDOMAIN_NAME $PCF_SUBDOMAIN_NAME -PCF_DOMAIN_NAME $($location).$($dnsdomain)" + Write-Host "Now running $command" Invoke-Expression -Command $command }