Merge pull request #101754 from rnhmjoj/dnscrypt-fix
nixos/dnscrypt-wrapper: fix key rotation script
commit4c07f77124b52806f43a8223f90c21313705438f
authorMichele Guerini Rocco <rnhmjoj@users.noreply.github.com>
dateMon 26 Oct 2020, 13:51 (6 years ago)
parentf861aae9e04bba
nixos/modules/services/networking/dnscrypt-wrapper.nix+4−1
@@ -55,7 +55,10 @@ let
5555 rotateKeys = ''
5656 # check if keys are not expired
5757 keyValid() {
58− fingerprint=$(dnscrypt-wrapper --show-provider-publickey | awk '{print $(NF)}')
58+ fingerprint=$(dnscrypt-wrapper \
59+ --show-provider-publickey \
60+ --provider-publickey-file=${publicKey} \
61+ | awk '{print $(NF)}')
5962 dnscrypt-proxy --test=${toString (cfg.keys.checkInterval + 1)} \
6063 --resolver-address=127.0.0.1:${toString cfg.port} \
6164 --provider-name=${cfg.providerName} \