Update vCenter-SSL.ps1
This commit is contained in:
@@ -130,6 +130,7 @@ if ($paCert) {
|
|||||||
$needNewCert = $true
|
$needNewCert = $true
|
||||||
} else {
|
} else {
|
||||||
Write-Log INFO "Skipping issuance — certificate valid >$RenewalWindow days."
|
Write-Log INFO "Skipping issuance — certificate valid >$RenewalWindow days."
|
||||||
|
$needNewCert = $false
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Write-Log WARN "No existing cert found — issuance required."
|
Write-Log WARN "No existing cert found — issuance required."
|
||||||
@@ -200,6 +201,7 @@ foreach ($f in @($certPath,$keyPath,$chainPath)) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($needNewCert) {
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
# Add CA chain to trusted store (remove duplicates)
|
# Add CA chain to trusted store (remove duplicates)
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
@@ -288,6 +290,7 @@ if ($needPush) {
|
|||||||
} else {
|
} else {
|
||||||
Write-Log INFO "No certificate update needed. Skipping vpxd restart + Veeam rescan."
|
Write-Log INFO "No certificate update needed. Skipping vpxd restart + Veeam rescan."
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# ----------------------------
|
# ----------------------------
|
||||||
# Script Complete
|
# Script Complete
|
||||||
|
|||||||
Reference in New Issue
Block a user