header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

SSL Info
Last Post 09 Mar 2010 04:35 PM by Cruisader03. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Drack69User is Offline
New Member
New Member
Posts:10
Avatar

--
08 Mar 2010 09:04 PM  


Can anybody help me out....
I am looking at putting together a script to check what dates an SSL will expire on any given server.
Under what class will I find that info? I'm assuming I may also need to load some plug-in?


Mike PfeifferUser is Offline
New Member
New Member
Posts:28
Avatar

--
09 Mar 2010 01:12 AM  
You might want to just use the certificate provider:
http://technet.microsoft.com/en-us/library/dd347615.aspx

For example, this would give you the subject name and expiration date for the certificates in the local machine store:

gci cert:\LocalMachine\My | select subject,notafter
ShayUser is Offline
Veteran Member
Veteran Member
Posts:1091
Avatar

--
09 Mar 2010 07:45 AM  
Check this blog post:

http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/05/31/getting-certificates-expiration.aspx

Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic
PowerShell Toolbar:
Drack69User is Offline
New Member
New Member
Posts:10
Avatar

--
09 Mar 2010 04:21 PM  
This is helpful. It's getting me some of what I need.

What I really want to do is query a list of servers for any cert and then be able to pull in info about that cert (issuer, expiration date, etc)
We are not set up to run remote commands and probably will not be for a while or I would try that route. So my hope is to loop through my server list with a for loop and query each one for all the certs then sort through them and pick out what one's match my criteria and then I'll dump that out to the screen or CSV or something.

This is actually something for a person on another team but that can't really find a way and I think PS can save the day. Then maybe the higher up's will see the value and maybe I can get some money for a class or two since I'm still pretty green with it. I can pull from a text file a list of servers and grab other stuff like boot times, system info, etc. I just find nothing when Googling for Cert info though PS.


Thanks everyone. Love this group it's been a big help so far with this and past questions I have had.
Cruisader03User is Offline
Basic Member
Basic Member
Posts:243
Avatar

--
09 Mar 2010 04:35 PM  
check this one. it seems to have helped other ppl

http://social.technet.microsoft.com/Forums/en-US/winserverManagement/thread/eb3f8f93-07ff-4d30-8b0a-7a5bfbb9420e
When at first you don't succeed Step-Into

http://theposherlife.blogspot.com
http://www.jandctravels.com

You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer