Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jcarrano/wg-keygen-notrust
Wireguard Key Generator, web-based, client-side, trustless
https://github.com/jcarrano/wg-keygen-notrust
cryptography ipfs wireguard wireguard-vpn wireguard-vpn-setup
Last synced: 17 days ago
JSON representation
Wireguard Key Generator, web-based, client-side, trustless
- Host: GitHub
- URL: https://github.com/jcarrano/wg-keygen-notrust
- Owner: jcarrano
- Created: 2022-06-08T15:41:57.000Z (over 2 years ago)
- Default Branch: split-files-clean
- Last Pushed: 2024-05-24T15:30:25.000Z (7 months ago)
- Last Synced: 2024-08-20T15:03:58.338Z (4 months ago)
- Topics: cryptography, ipfs, wireguard, wireguard-vpn, wireguard-vpn-setup
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 10
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wireguard Key Generator
Browser-based, offline-capable, client-side, trustless
## Available
### IPFS
These are content-addressed, so you can trust the content does not change. There
are two hashes, one with files stored as UnixFS, and another with files stored
as raw data:- [QmTVzzkm2WY6q7nKaLw6MZkP3Pda8wuHuSvbkyBRB4KA8w](https://explore.ipld.io/#/explore/QmTVzzkm2WY6q7nKaLw6MZkP3Pda8wuHuSvbkyBRB4KA8w) (UnixFS)
- [bafybeig3izids7rw7c7mpz2uicqvz646ad766xw5mheymwjytkocpqqm2y](https://explore.ipld.io/#/explore/bafybeig3izids7rw7c7mpz2uicqvz646ad766xw5mheymwjytkocpqqm2y) (Raw)Gateway links:
- https://cloudflare-ipfs.com/ipfs/QmTVzzkm2WY6q7nKaLw6MZkP3Pda8wuHuSvbkyBRB4KA8w/
- https://cloudflare-ipfs.com/ipfs/bafybeig3izids7rw7c7mpz2uicqvz646ad766xw5mheymwjytkocpqqm2y/### Web
- https://jcarrano.github.io/wg-keygen-notrust/
- https://wg-keygen.carrano.com.arNote that this link is not content-addressed, so here you should trust me.
## What is this
This is a website that can generate a Wireguard keypair. The user
is given two files to download: a wireguard config with his private key (and additional parameters),
to load into his VPN software, and a "fragment", which is a `[Peer]` section that he
must send to the server administrator.AT NO POINT IS ANY EXTERNAL SERVER CONTACTED. KEYS NEVER LEAVE THE USER'S COMPUTER UNTIL
THEY EXPLICITLY SEND THE FRAGMENT TO THE SEVER ADMIN.Compared to other online key generators out there, this one does not require you to
trust me (the author) or the person running the webserver.- You don't have to trust me because the code is small and clear. You can review and
audit it from the point where I imported Jason Donenfeld's code through all
the additions I made.
- You do not have to trust the webserver not to tamper with the site because it
is hosted on IPFS, which is [content-addressed](https://en.wikipedia.org/wiki/Content-addressable_storage),
so if the address/hash is the same, the content is the same.Alternatively, you could host the site yourself.
## Single-file version
A single-file version with embedded scripts is available under the "single-file"
branch, however it does not work on IPFS gateways due the content-security
policy.## Some additional background
When setting up a Wireguard VPN server you have two choices:
- Generate the private keys yourself and send them to users, in which
case the files must be send under a secure (private, authenticated) channel
(i.e. NOT email).
- Users can generate a keypair and send the server admin the public key over
an authenticated (but not necessarily private) channel, in which case they
need to have the technical know how to use the command line tools and to
build a configuration file.This website allows users to generate their own keys and configuration files with
no special knowledge required..### Instructions
The VPN admin fills in the form fields and clicks "save", which generates a URL
with the parameters saved inside the query string. Upon opening this URL the form will
be pre-filled.The admin sends the URL to users, which generate the keys and send the "Server
Fragment" back to the admin. An email address can optionally be specified,
which will enable a "mailto" link to directly mail the fragment back to the
admin.## License
This code is licensed under the GNU GPLv2, since that was the license of the
original JS code. I would like a more permissive license.