Author Posts

February 2, 2017 at 7:25 pm

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 ?


February 2, 2017 at 7:29 pm

Does below work for you?

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