Documentation for wireguard key creation
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
- [How-to]()
|
||||
- [Create New Host](./anleitung/create.md)
|
||||
- [Sops](./anleitung/sops.md)
|
||||
- [Wireguard](./anleitung/wireguard.md)
|
||||
- [Updates](./anleitung/updates.md)
|
||||
- [Rollbacks](./anleitung/rollback.md)
|
||||
- [MicroVM](./anleitung/microvm.md)
|
||||
|
||||
11
doc/src/anleitung/wireguard.md
Normal file
11
doc/src/anleitung/wireguard.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Wireguard
|
||||
Running on the raspberry pi
|
||||
|
||||
- Create new keys
|
||||
- Enter nix shell for wg commands `nix-shell -p wireguard-tools`
|
||||
- New private key `wg genkey > secrets/keys/wireguard/example.key`
|
||||
- Encrypt with `sops -e -i secrets/keys/wireguard/example.key`
|
||||
- commit keys only after encrypting
|
||||
- Decrypt to stdout `sops -d secrets/keys/wireguard/example.key`
|
||||
- Decrypt for use on a client `sops -d secrets/keys/wireguard/private.key > /tmp/private.key`
|
||||
- Display public key `sops -d secrets/keys/wireguard/example.key | wg pubkey`
|
||||
Reference in New Issue
Block a user