Please provide a PowerShell Script to find out SSL certificate Expiring date.

How to trace an expiring SSL certificate in a domain.
We have 3 Legacy Citrix Farms in our environment.
Users are using web interface servers to access these Farms.
We have multiple SSL certificates for this environment.
Please provide a PowerShell Script to find out SSL certificate Expiring date.
LVL 1
Murty MAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serialbandCommented:
Do you mean something like this?
Get-ChildItem -Path cert: -Recurse -ExpiringInDays 355

If you really want all of them:
Get-ChildItem -Path cert: -Recurse |select Thumbprint, Subject, NotAfter
0
Michael B. SmithExchange & Active Directory ExpertCommented:
You probably only care about CurrentUser\My and LocalMachine\My.

And if you need to do this on multiple computers, you can wrap it with Invoke-Command:

Invoke-Command -Computer server1, server2, server3 -ScriptBlock { 
    Get-ChildItem -Path cert:\CurrentUser\My, cert:\LocalMachine\My -Recurse | 
        Select-Object @{ N = 'Computer'; E = { $env:ComputerName } }, Thumbprint, NotAfter, Subject 
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Murty MAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.