-
Notifications
You must be signed in to change notification settings - Fork 70
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
Key is not valid 44-character (32-bytes) base64 #138
Comments
As far as I know the "set interfaces wireguard wg0 peer" command requires that a Base64 key be entered as text:
This is different that the syntax for the private key:
So the key that you generated is valid but the text of the path to the publickey file is not a valid key. |
The package seems to be unable to take input of any keyfiles as a file. If I set the keys directly in config everything works as intended, but the moment I set them as a file path things stop working. Of course, we don't want keys stored in the config file if we can help it.. |
@cmdrogogov As dc361 pointed out, it should be possible to use key files for private keys. If that's not the case, that is a bug and I would appreciate if you could point out where that's the case. |
This fails for me too.. Tried this:
|
It accepts it only if I put contents of privatekey file directly on command |
@KlavsKlavsen Please make sure you understand when to use public vs private keys. |
Same guide as reported. Same issue. ER-X v2.0.9-hotfix.4. Going to try hotfix.6 as soon as I am able. Installed e50-v2-v1.0.20210606-v1.0.20210914.deb as per guide. I'm doing it backwards though: the ER-X is my remote peer. The "server" peer is a Debian Linux box and I'm using Angristan's WireGuard script to add clients/peers. I pasted the server public key from the remote peer's .conf file created with that script into a file I created on the ER-X using After that failed, I installed the latest version, e50-v2-v1.0.20220627-v1.0.20210914.deb, over top the recommended package. Same results. [Edit] I also tried this through the config tree and it errors out. |
Public keys MUST be specified directly on the command line. |
Package version
1.0.20210914
Firmware version
v2.0.9-hotfix.4
Device
EdgeRouter X (SFP, 10 X, EP-R6) - e50
Issue description
Following: https://blog.usman.network/posts/wireguard-vpn-on-a-ubiquiti-edgerouter/
Using pkg e50-v2-v1.0.20210606-v1.0.20210914.deb
Steps to reproduce:
Code Location ?
Testing the key using the included script ?
Configuration and log output
No response
The text was updated successfully, but these errors were encountered: