Information about SSL certificates from "WebHosting" certificate store

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Deepak Deepak 3 months, 3 weeks ago.

  • Author
    Posts
  • #63420
    Profile photo of Deepak
    Deepak
    Participant

    Hi ,

    I'm executing below power shell command to fetch the information about certificates.

    dir cert:\localmachine\my | Where-Object { $_.hasPrivateKey }
    

    It is only giving me the information regarding certificates from personal store. Is there a way to fetch the certificate's info from "WebHosting" store as well ?

    Thanks,
    Deepak

  • #63421
    Profile photo of Daniel Krebs
    Daniel Krebs
    Moderator

    Does below work for you?

    dir cert:\localmachine\WebHosting | Where-Object { $_.hasPrivateKey }
    
    • #63436
      Profile photo of Deepak
      Deepak
      Participant

      Yes ! thank you

You must be logged in to reply to this topic.