nixos/dnscrypt-wrapper: fix key rotation script
Fix an error in the validation code when the public key is in a nonstandard location. The check command fails and the key is incorrectly assumed to be expiring.
This commit is contained in:
parent
81573a6435
commit
9e04bba0af
|
@ -55,7 +55,10 @@ let
|
|||
rotateKeys = ''
|
||||
# check if keys are not expired
|
||||
keyValid() {
|
||||
fingerprint=$(dnscrypt-wrapper --show-provider-publickey | awk '{print $(NF)}')
|
||||
fingerprint=$(dnscrypt-wrapper \
|
||||
--show-provider-publickey \
|
||||
--provider-publickey-file=${publicKey} \
|
||||
| awk '{print $(NF)}')
|
||||
dnscrypt-proxy --test=${toString (cfg.keys.checkInterval + 1)} \
|
||||
--resolver-address=127.0.0.1:${toString cfg.port} \
|
||||
--provider-name=${cfg.providerName} \
|
||||
|
|
Loading…
Reference in New Issue