stylianosnicoletti / dotnet-certificate-tool

Command line tool to install and remove certificates from the current user's store.
https://www.nuget.org/packages/dotnet-certificate-tool
Apache License 2.0
109 stars 28 forks source link

Add Custom StoreLocation support #4

Closed shoshins closed 4 years ago

shoshins commented 5 years ago

Suggestion: Please add the possibility to specify Store location (System.Security.Cryptography.X509Certificates.StoreLocation).

How it works right now: CurrentUser store location is hardcoded. Example: var store = new X509Store(storeName, StoreLocation.CurrentUser);

yohanb commented 4 years ago

Hi @shoshins, I'm not sure other store locations are supported under Linux distros. Have you tried it?

shoshins commented 4 years ago

Yes, Linux does not allow us to use LocalMachine storage.

Unix LocalMachine X509Stores are read-only for all users.

But I was able to install the certificate on macOS for example. And also this tool can be used on Windows computers/servers too. I suppose that .net core is a universal thing).

Maybe some other Unix-based platforms (except Linux, like macOS) allow this.