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

age-keygen -y generates spurious warning when redirecting stdout to a file #267

Closed
ryancdotorg opened this issue May 18, 2021 · 1 comment · Fixed by #268
Closed

age-keygen -y generates spurious warning when redirecting stdout to a file #267

ryancdotorg opened this issue May 18, 2021 · 1 comment · Fixed by #268
Milestone

Comments

@ryancdotorg
Copy link
Contributor

Environment

  • OS: Debian 10.9
  • age version: (devel) - 2021-05-18

What were you trying to do

Create public key file

What happened

rc@pxl:~/code/age$ ls -al ~/.age.key 
-r-------- 1 ryanc ryanc 189 May 18 11:25 /home/ryanc/.agekey
rc@pxl:~/code/age$ age-keygen -y ~/.age.key > ~/age.pub
Warning: writing secret key to a world-readable file.

I'm not writing a secret key here.

If I instead remove ~/age.pub and run age-keygen -y -o ~/age.pub ~/.age.key I do not get the warning.

@FiloSottile
Copy link
Owner

Ah, good catch, thank you!

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 a pull request may close this issue.

2 participants