ciniml / WireGuard-ESP32-Arduino

WireGuard implementation for ESP32 Arduino
Other
804 stars 64 forks source link

How to generate device public key #12

Closed rjjrbatarao closed 2 years ago

rjjrbatarao commented 2 years ago

Is there any way of getting the device public key? theres only peer public key available but I dont know where to get the device public key

ciniml commented 2 years ago

This library does not have any key generation feature, so you must generate a device private and public key pair somewhere else. e.g. Generating the device private and public keys on a PC with this instruction.

Then you can embed the generated private key to the sketch and register the generated public key to the WireGuard remote peer.

rjjrbatarao commented 2 years ago

Thank you I'll follow the instruction right away.

rjjrbatarao commented 2 years ago

I found an online tool t generate private nad public key https://www.wireguardconfig.com/ hope this helps.