Bulk-download Wireguard configs

Seems to me there is no way currently to generate and download more than one Wireguard config at a time.

While OpenVPN config (don’t need to be generated) can be downloaded for a group selection, I don’t see any of this for Wireguard configs.

  1. Will this be implemented in the future?
  2. I looked for a specific “Wireguard config download script for ProtonVPN” on GitHub then, but didn’t find anything. As most of the ProtonVPN is open-source, it might be possible to generate these configs in some way. Somebody is already on this?

For what I saw, PrivateKey is generated in browser then the public key is registered to ProtonVPN via API. This is, I think the only bit that change between users for a same server. The Public Server Key might be available somewhere else, no?

With a bit more research it seems feasible, the server Public Key are actually the same that OpenVPN ones (available here: https://account.protonvpn.com/api/vpn/logicals ), and there is just a single endpoint to call to get the wanted certificate ( https://account.protonvpn.com/api/vpn/v1/certificate ).
I just need a way to auth with ProtonVPN, or in last resort just retrieved the Cookie jar.

Got a PoC working, I will make it a script later this month :slight_smile:

Note, as Client Keys can be generated on Browser side, I can too, even if for now, getting the keys from the fallback API is easier.

Python script available there : Generate lots of Wireguard configuration for your ProtonVPN Account. · GitHub

I need this function also

Super cool – using this!

More to see there:

https://bafybeia3pza3d2i5yfsj3u7xhbqv7uiumw7ybxafe2pqknpnyed5zcsrou.ipfs.cf-ipfs.com/