From f17b2bc5d10bf1df6327eb1cfa036e19d3db29d7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 Nov 2015 14:43:15 +0100 Subject: generating RSA & ed25519 for new hosts in tinc --- custom/tinc/def.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'custom/tinc') diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix index 6db4e882..e3f1f587 100644 --- a/custom/tinc/def.nix +++ b/custom/tinc/def.nix @@ -153,8 +153,8 @@ in # Determine how we should generate our keys if type tinc >/dev/null 2>&1; then # Tinc 1.1+ uses the tinc helper application for key generation - [ -f "/etc/tinc/${network}/ed25519_key.priv" ] || tinc -n ${network} generate-ed25519-keys || \ - [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tinc -n ${network} generate-rsa-keys 4096 + [ -f "/etc/tinc/${network}/ed25519_key.priv" ] || tinc -n ${network} generate-ed25519-keys + [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tinc -n ${network} generate-rsa-keys 4096 else # Tinc 1.0 uses the tincd application [ -f "/etc/tinc/${network}/rsa_key.priv" ] || tincd -n ${network} -K 4096 -- cgit v1.2.3