ER-wizard-WireGuard icon indicating copy to clipboard operation
ER-wizard-WireGuard copied to clipboard

BYO Private Key

Open pettijohn opened this issue 2 years ago • 2 comments

Hi - first I want to say that this is brilliant. I lost my wireguard config after a firmware upgrade (didn't realize that would happen!) and while reinstalling found this. So much easier than the command line, I appreciate it.

Because I was coming from a previous installation, I had a private key for wg0 that I wanted to import so that I didn't have to reconfigure the half-dozen clients already set up. Looking through the code I realized that the private key is in the HTML source, so I hit F12, edited the value of the private key, clicked Apply and ... it worked!?

I think it would be brilliant if that could be a supported feature. Allow the web UI to show & edit the private key for scenarios such as mine, where the user is coming from an existing setup.

image

pettijohn avatar Feb 18 '23 16:02 pettijohn

Looks like a more supported (as opposed to editing the DOM) way to do this is to go to config tree and edit interfaces -> wireguard -> private key.

pettijohn avatar Apr 10 '23 19:04 pettijohn

I feel like a better feature request is to create the ability to NOT store the private key in the config and instead point to /config/auth/wg.key

Then you can BYO by dropping the appropriate file there AND you aren't exposing your private key in the config

jumperalex avatar Dec 02 '23 19:12 jumperalex