Information about SSL certificates from "WebHosting" certificate store

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

Does below work for you?

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

Yes ! thank you