WireGuard: Difference between revisions

m Generate a public/private key pair: Changed created to generated
m Generate a public/private key pair: Changed created to generated
Line 51: Line 51:
=== Generate a public/private key pair ===
=== Generate a public/private key pair ===


* Create a private and public key for the server. You can use the following command:
* Generate a private and public key for the server. You can use the following command:
  wg genkey | tee server-privatekey | wg pubkey > server-publickey
  wg genkey | tee server-privatekey | wg pubkey > server-publickey
**<code>server-privatekey</code> and <code>server-publickey</code> are filenames and can be anything you want and can be changed accordingly. These files are not directly used by WireGuard.
**<code>server-privatekey</code> and <code>server-publickey</code> are filenames and can be anything you want and can be changed accordingly. These files are not directly used by WireGuard.