Update vCenter-SSL.ps1

This commit is contained in:
2025-08-25 20:12:14 -05:00
parent 5b7490e242
commit 4691f5c9d9

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 30) {
If ($daysUntilExpiration -lt 300) {
Write-Host "Renewing cert for '$("$CommonName")' " -ForegroundColor Yellow
Submit-Renewal $CommonName
}