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 for passing the key password non-interactively #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmbaturin
Copy link

Right now the only way to sign something with a password-protected key is to enter the key password via stdin. That is inconvenient for use in scripts and CI pipelines.

This PR adds support for passing the password in an environment variable called MINISIGN_PASSWORD.

I'm not claiming this design is actually good — it's more of a starting point for a discussion. I'm happy to change any details if you have different ideas.

@jedisct1
Copy link
Owner

jedisct1 commented Dec 11, 2024

stdin is not necessarily the console.

minisign -Sm file.zip < password.txt
echo 'password` |  minisign -Sm file.zip
echo "${ENVIRONMENT_VARIABLE}" | minisign -Sm file.zip

work.

You can also not use a password at all with the -W option.

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.

2 participants