mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
pki: wireguard: T3642: Key pair for migration tests after op-mode command is removed
This commit is contained in:
parent
615717e506
commit
eed0f1770e
@ -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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user