Skip to content

How can I generate private key from Foreman ? #26

@PandemiK911

Description

@PandemiK911

Hello,
This is more a question than a issue (but perhaps a request for feature) : I'm trying to set up wireguard interfaces completely from Foreman.
When the wirguard class is added, the package is installed correctly (tested on Debian 10). But I'm unable to set up an interface due to the lack of private key.
I saw there are some functions to generate private, public and preshared keys but I can't find how to call them for foreman's node definition. And Foreman's documentation does not mention this topic.

Any clue please ? Someone already should had the same need ?

And another tough :
there could be some king of workadound : wireguard allows you to start an interface without a 'privatekey=' line in the interface definition as long as you provide the private key by any mean. For example, on some nodes, I'm using this PostUp trick :
PostUp = wg set %i private-key /etc/wireguard/keys/private.key

But I can't do this because the private_key parameter is required in the interface definition.

Thanks for your work and help !
Julien

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions