Skip to content

wg genkey each run if not provided #19

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

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

Conversation

hh
Copy link

@hh hh commented May 10, 2023

This reduces the burden of needing to install wireguard tools to use tunnel.

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Instead of generating a key implicitly on each start we should offer a new subcommand to generate a key. The key generation function should not be uniuri since it doesn't generate random bytes and instead only generates random printable characters which is substantially less secure. Use tunnelsdk.GeneratePrivateKey() instead.

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