Update vCenter-SSL.ps1

This commit is contained in:
2025-08-25 20:16:08 -05:00
parent 4691f5c9d9
commit 62ea634793

View File

@@ -143,7 +143,7 @@ $CheckSLL = Get-PACertificate -MainDomain $CommonName
$RUN=$true
If ((($CheckSLL).AllSANs) -eq $CommonName) {
$daysUntilExpiration = (New-TimeSpan -Start (Get-Date) -End $CheckSLL.NotAfter).Days
If ($daysUntilExpiration -lt 300) {
If ($daysUntilExpiration -lt 30) {
Write-Host "Renewing cert for '$("$CommonName")' " -ForegroundColor Yellow
Submit-Renewal $CommonName
}