header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
SSL Info
Last Post 09 Mar 2010 08:35 AM by PoSherLife. 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:24
Avatar

--
08 Mar 2010 01: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

    --
    08 Mar 2010 05:12 PM
    You might want to just use the certificate provider:
    http://technet.microsoft.com/en-us/...47615.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
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    08 Mar 2010 11:45 PM

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    Drack69User is Offline
    New Member
    New Member
    Posts:24
    Avatar

    --
    09 Mar 2010 08:21 AM
    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.
    PoSherLifeUser is Offline
    Basic Member
    Basic Member
    Posts:364
    Avatar

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

    http://social.technet.microsoft.com...5bfbb9420e
    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.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer