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

Failed to parse base64-encoded key: illegal base64 data at input byte 0 #141

Open
crocokyle opened this issue Jul 13, 2021 · 0 comments
Open

Comments

@crocokyle
Copy link

I'm attempting to run this in windows via docker-compose. I used the following commands to set the env vars:

set WG_ADMIN_PASSWORD="example"
set WG_WIREGUARD_PRIVATE_KEY="$(wg genkey)"

and here is the output I get:

Attaching to wg-access-server
wg-access-server    | time="2021-07-13T19:49:49Z" level=info msg="starting wireguard server on 0.0.0.0:51820" file="main.go:85"
wg-access-server    | time="2021-07-13T19:49:49Z" level=fatal msg="failed to load wireguard config: invalid wireguard config: bad private key: wgtypes: failed to parse base64-encoded key: illegal base64 data at input byte 0" file="main.go:96"
wg-access-server exited with code 1

I'm assuming this has something to do with line endings or the like, but not exactly sure how to troubleshoot this. Any help would be appreciated.

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

No branches or pull requests

1 participant