Skip to content

Add --system-store-location flag to configure Windows certificate sto…#166

Open
nas-ttatewaki wants to merge 1 commit intoaws:mainfrom
nas-ttatewaki:feature/windows-cert-store-location
Open

Add --system-store-location flag to configure Windows certificate sto…#166
nas-ttatewaki wants to merge 1 commit intoaws:mainfrom
nas-ttatewaki:feature/windows-cert-store-location

Conversation

@nas-ttatewaki
Copy link
Copy Markdown

@nas-ttatewaki nas-ttatewaki commented Feb 17, 2026

…re location

Issue #, if available:

Fixes #70

Description of changes:

The Windows certificate store search was hardcoded to use the CERT_SYSTEM_STORE_CURRENT_USER context. Since the LocalMachine\MY store is not inherited into CurrentUser\MY, users who store certificates in the Local Machine personal store had no way to access them directly.

This PR adds a --system-store-location flag that accepts CurrentUser (default) or LocalMachine, allowing users to specify which store context to search. The flag is available on the credential-process, sign-string, and read-certificate-data commands. Input is validated and normalized (case-insensitive), following the existing --system-store-name pattern.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@nas-ttatewaki nas-ttatewaki force-pushed the feature/windows-cert-store-location branch from 9074170 to d3b46ad Compare March 16, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle/Change Windows Cert search context between CERT_SYSTEM_STORE_USER and CERT_SYSTEM_STORE_LOCAL_MACHINE for "MY"

1 participant