namecoin / certinject

Inject certificates into Windows CryptoAPI trust store, with EKU and name constraints.
https://www.namecoin.org/
GNU General Public License v3.0
2 stars 5 forks source link

Allow selecting CryptoAPI physical store #5

Open JeremyRand opened 4 years ago

JeremyRand commented 4 years ago

CryptoAPI has the concept of a "physical store"; changing the physical store of a cert impacts what users it applies to (and maybe some other things, like which applications it applies to and whether it's synced via Group Policy and/or Active Directory). The physical store is encoded in the path of the registry key where the cert blob is located. Right now, certinject always uses the Enterprise physical store, which is used for certs synced via Active Directory. Various other physical stores exist.

It would be useful to allow the user to specify which physical store a cert is injected to.

JeremyRand commented 4 years ago

List of all the physical stores I could find on a Windows 7 machine that I had lying around (via searching the registry for Root keys):

I'm pretty sure that there are additional physical stores on Windows 8 or higher.

JeremyRand commented 4 years ago

https://github.com/namecoin/certinject/pull/4 added support for system, current-user, enterprise, and group-policy. We still need to add support for HKU and Services physical stores.