summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-19 19:30:21 +0200
committerGitHub <noreply@github.com>2021-07-19 19:30:21 +0200
commitfee975190aee1d7f7e7455f0f01c5b3b204e8a59 (patch)
tree51d3a93762e0cd3c8ee361234ef7686140b6807e
parent615717e506610db04340f002504e284c4da0a7c2 (diff)
parenteed0f1770e51b67279b949dc15c8f5b7b391782b (diff)
downloadvyos-build-fee975190aee1d7f7e7455f0f01c5b3b204e8a59.tar.gz
vyos-build-fee975190aee1d7f7e7455f0f01c5b3b204e8a59.zip
Merge pull request #177 from sarthurdev/pki_wg
pki: wireguard: T3642: Key pair for migration tests after op-mode command is removed
-rwxr-xr-xscripts/check-qemu-install8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 1345b235..ad3f9f45 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -357,8 +357,12 @@ try:
# else, run configtest suite
else:
- log.info('Generating a WireGuard default keypair')
- c.sendline('generate wireguard default-keypair')
+ log.info('Adding a legacy WireGuard default keypair for migrations')
+ c.sendline('sudo mkdir -p /config/auth/wireguard/default')
+ c.expect(op_mode_prompt)
+ c.sendline('echo "aGx+fvW916Ej7QRnBbW3QMoldhNv1u95/WHz45zDmF0=" | sudo tee /config/auth/wireguard/default/private.key')
+ c.expect(op_mode_prompt)
+ c.sendline('echo "x39C77eavJNpvYbNzPSG3n1D68rHYei6q3AEBEyL1z8=" | sudo tee /config/auth/wireguard/default/public.key')
c.expect(op_mode_prompt)
log.info('Generating some OpenVPN keys')