Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to allow users to input password through commandline to sign command #1824

Merged
merged 4 commits into from
Nov 29, 2017

Conversation

mishra14
Copy link
Contributor

Bug

Fixes: NuGet/Home#5904
Regression: No

Fix

Details: This PR adds support in sign command to allow users to interactively type pfx file password securely. To allow this I have added IPasswordProvider.cs and its implementation ConsolePasswordProvider.cs that allows SignCommandRunner to read password from console in -NonInteractive mode. The underlying implementation comes from IConsole.ReadSecureString.

I have also added some tests using pfx files and done some cleanup in the test code.

Testing/Validation

Tests Added: Yes
Validation done: manual testing with pfx files.

Copy link
Member

@emgarten emgarten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@mishra14 mishra14 merged commit 065262c into dev-feature-signing Nov 29, 2017
@mishra14 mishra14 deleted the dev-anmishr-credentials-minimal branch November 29, 2017 05:14
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.

3 participants