changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / scripts/wg-gen-keys.sh

changeset 337: b7dd9ff3232f
parent: f3e37ace9e64
author: Richard Westhaver <ellis@rwest.io>
date: Sat, 20 Jul 2024 16:53:56 -0400
permissions: -rwxr-xr-x
description: repos install bare
1 #!/bin/sh
2 # generate base64-enc keypair in current dir
3 umask 077
4 f1=${1:-private.key}
5 f2=${2:-public.key}
6 wg genkey | tee $f1 | wg pubkey > $f2