« Previous Next »

Thread: Assign SSL Certificate through WMI

Last post 10-29-2009 7:58 AM by HK135. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 08-04-2008, 2:18 AM

    Assign SSL Certificate through WMI

    I have been unable to find a way to progromatically assign a SSL certificate to a website through WMI. Has anyone been able to do this through WMI?

  • 08-07-2008, 5:15 AM In reply to

    Re: Assign SSL Certificate through WMI

    You can look at the metabase properties of SSLCertHash, SSLStoreName, for IIS 7 it is SSLBinding.

    For certificate store, you could probably use the Store Object http://msdn.microsoft.com/en-us/library/aa388120(VS.85).aspx 

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 08-13-2008, 8:18 PM In reply to

    Re: Assign SSL Certificate through WMI

    Hi, I have been trying to do the same thing but the "SSLCertHash" property in WMI is read only and returns an error every time I try to change it.

    What am I doing wrong?

  • 08-13-2008, 11:34 PM In reply to

    Re: Assign SSL Certificate through WMI

     I'm sorry. I need to clarify that this is for IIS6. The Store Object above looks like it manages the actual certificates.

  • 08-13-2008, 11:35 PM In reply to

    Re: Assign SSL Certificate through WMI

     I have attempted this same method and obtained an error as well.

  • 10-29-2009, 7:58 AM In reply to

    • HK135
    • Not Ranked
    • Joined on 10-29-2009, 7:56 AM
    • Posts 1

    Re: Assign SSL Certificate through WMI

     Yeah, been trying to Add and Retrive SSL details for a site using wmi and c# for a while now with no luck. Did anyone ever get this working properly?

Page 1 of 1 (6 items)
Microsoft Communities