pirate / wireguard-docs

📖 Unofficial WireGuard Documentation: Setup, Usage, Configuration, and full example setups for VPNs supporting both servers & roaming clients.
https://docs.sweeting.me/s/wireguard
MIT License
4.45k stars 309 forks source link

how multi user use a config file #49

Closed karimi12 closed 4 years ago

karimi12 commented 4 years ago

hi in openvpn multi user can use a certificate file for connect to server in wireguard multi user can use a file?

pirate commented 4 years ago

You cannot have peers share the same keys, a new key must be generated for each client.

However, once you generate those keys, all the peers can be stored in a single file that all the clients share, see: https://github.com/pirate/wireguard-docs#sharing-a-single-peersconf-file