Support the Cert:/ PSDrive on non-Windows platforms
See original GitHub issueSteps to reproduce
Switch to Cert:/ Drive and run Get-ChildItem
Expected behavior
PS Cert:/> get-childitem
Location : CurrentUser StoreNames :
Location : LocalMachine StoreNames :
Actual behavior
PS Cert:/> get-childitem get-childitem : Cannot find path ‘/Cert:/’ because it does not exist. At line:1 char:1
- get-childitem
-
- CategoryInfo : ObjectNotFound: (/Cert:/:String) [Get-ChildItem], ItemNotFoundException - FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.0-alpha
PSEdition Core
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v6.0.0-alpha.8
CLRVersion
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:11 (7 by maintainers)
Top Results From Across the Web
about Certificate Provider - PowerShell
The PowerShell Certificate provider lets you get, add, change, clear, and delete certificates and certificate stores in PowerShell.
Read more >Managing PowerShell drives
By default, PowerShell includes providers that support the filesystem, the registry, certificate stores, and others.
Read more >Manage Certs with Windows Certificate Manager and ...
PowerShell can access Windows logical stores using the Cert: PSDrive. The Cert: PSDrive maps certificates to the physical stores much like ...
Read more >New PSDrive and other PowerShell Drives Save the Day
Learn how to work with PS drives by creating new drives with the New PSDrive, Get-PSDrive and Remove-PSDrive cmdlets!
Read more >How can I list all self-signed certificates in my stores on a ...
Try “cert:” PsDrive. This here will be human readable. And (thanks to the semicolon as the delimiter) it will also open nicely in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@joeyaiello What would an x509 cert provider do on a Linux machine? Well, it could enumerate the certs in
/etc/ssl,/etc/pki/tls,/system/etc/security/cacerts, but the semantics would need to be quite different than on windows to be useful.In researching supported and unsupported features in .NET core’s Web Cmdlets I discovered that the certificate stores are working in .NET on both Linux and macOS. they can be directly manipulated via the .NET APIs through pwsh. On Linux, the current user my store gets created in
~/.dotnet/corefx/cryptography/x509stores/my. on macOS it is using Apple’sSecurity.FrameworkAPI.Using the
ClientCert.pfxin theWebListener, I can initialize the LinuxCurrentUser\Mystore like so:After doing that on Linux, I am able to use cert auth via thumbprint:
Cert auth doesn’t work at all on macOS, but, I can still manipulate and search the
CurrentUser\Mystore using the .NET APIs.I think this support should be readded for x-plat in 6.1.0.