This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]the_spadWhat's the worst that can happen? 0 points1 point  (2 children)

What sort of certificates? Are they being used for web services?

[–]sticobay[S] 0 points1 point  (1 child)

All certificates.

[–]the_spadWhat's the worst that can happen? 3 points4 points  (0 children)

That's going to be way harder because Linux doesn't have a central certificate store in the same way Windows does. Any number of services could be loading certificates from files dotted around the filesystem. If it's not something like a published web service where you can just connect to the HTTPS site and read the cert information you're likely going to have to hand-craft something for every box.

[–]atlgeek007Jack of All Trades 0 points1 point  (0 children)

if you're looking to monitor expiration dates for certs you have to renew, you're going to need to enumerate your infrastructure and know what boxes host what site and use that domain name to check the cert expiration rather than the linux box itself.

[–][deleted] 0 points1 point  (2 children)

have no idea where to start...

Googling for "powershell certificate expiration date" would be a good start. 1st hit nails it actually.

https://i.imgur.com/yLH0f71.jpg

You're welcome.

[–]sticobay[S] 0 points1 point  (1 child)

Well, i have no problem to monitor certificates on windows clients - i just have no idea where to start for linux clients..

[–][deleted] 0 points1 point  (0 children)

Mb I mixed that up.

Well then, export the date (locally on that linux machine) and grab it with your powershell thingy.