Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,726 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
It's possible to detect SSL certificate expired in the next 30days using powershell?
Hello,
You can combine the following commands to query related information:
Find Server SSL Certificates:
$getChildItemSplat = @{
Path = 'cert:\LocalMachine\My', 'cert:\LocalMachine\WebHosting'
SSLServerAuthentication = $true
}
Get-ChildItem @getChildItemSplat
Find expired certificates:
Get-ChildItem -Path cert:\LocalMachine\WebHosting -ExpiringInDays 30
For more information refer to: about Certificate Provider - PowerShell | Microsoft Learn
Best regards
Jacen
———————————————————————————————————————
If the Answer is helpful, please click "Accept Answer" and upvote it.