the file is not created in the current directory or the specified path
vyos@test02:~$ pwd /home/vyos/ vyos@test02:~$ generate pki wireguard key-pair file keys Private key: yBYwlvYSgO+6hV9jercjsASBsykIcnbtzz4EziWVSWM= Public key: rs4I7Zj6RI2P/7az5LdNqi6p707cXrCKzFAKNaPP6RE= vyos@test02:~$ ls -ltr total 0 vyos@test02:~$ generate pki wireguard key-pair file /home/vyos/keys1 Private key: uNFNkSeLZ5LkSUsN2ryHVuSvmwkxtymlk/vIvkX8/Uc= Public key: ojYjp61lTEvVwuRPsoXOK7f4K8+TLJpjzgO7mksjCT0= vyos@test02:~$ ls -ltr /home/vyos total 0
Tested for openvpn and key-pair where the files are created in this path /config/auth
Do you want to encrypt the private key with a passphrase? [y/N] N File written to /config/auth/vyos1.pem File written to /config/auth/vyos1.key ------ vyos@test02:~$ generate pki openvpn shared-secret file test File written to /config/auth/test.key