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

Extend key -read and -write functions #279

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

Conversation

chris2511
Copy link

If an existing key or the new key is not intended to be stored in a file, the current implementation requires the creation of temporary files with all its odds (cleanup, symlink attack, mktemp)

This change allows to provide the key in many different ways:

A filename of "-" translates to for reading and for writing.

If the file named by "filename" does not exist,
check whether it contains a "-----BEGIN" and try interpreting the filename itself as key.

Extend documentation in README.md

If an existing key or the new key is not intended to be stored
in a file, the current implementation requires the creation of
temporary files with all its odds (cleanup, symlink attack, mktemp)

This change allows to provide the key in many different ways:

A filename of "-" translates to <stdin> for reading and
<stdout> for writing.

If the file named by "filename" does not exist,
check whether it contains a "-----BEGIN" and try interpreting
the filename itself as key.

Extend documentation in README.md

Signed-off-by: Christian Hohnstaedt <[email protected]>
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