Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: output private key for get command #384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AeroNotix
Copy link

PR adds the output for private_key when the get=1 command is used.

This allows the wg show command to properly show the public key in the output, which is useful if you have multiple wireguard devices or if you perform some automation around your wireguard devices based on the public key.

Example without:

; sudo wg show
interface: wg0
  listening port: 39742

Example with:

interface: wg0
  public key: XXXX/XXXXXXXXXXXXXXXXXX/XXXXXXXXXXXXXXX
  private key: (hidden)
  listening port: 37019

Additionally, added a comment around the own_public_key part, not entirely sure what the use for that is. Perhaps some boringtun extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant