Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Wireguard Public and Private Key Protection

    Scheduled Pinned Locked Moved WireGuard
    wireguard
    6 Posts 3 Posters 1.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      aakashjonwal
      last edited by

      Hi All,
      I need help in wireguard, please suggest me the solution.

      Problem: I want to protect the wireguard Public and Private Keys. So on one can access the keys and no one can use it further.

      Thank You in advance

      cmcdonaldC 1 Reply Last reply Reply Quote 0
      • cmcdonaldC
        cmcdonald Netgate Developer @aakashjonwal
        last edited by

        @aakashjonwal I’m not understanding your need.

        Can you try to explain this again?

        Need help fast? https://www.netgate.com/support

        1 Reply Last reply Reply Quote 0
        • A
          aakashjonwal
          last edited by

          Apology for late reply,

          Actually, In Wirgaurd Public and Private Keys are in txt file. Anyone can read this and use this. So how can we protect that keys.. Also in wg0.conf, Private Key of client machine are in readable form. So How can we protect that keys.

          Thank you in advance.

          1 Reply Last reply Reply Quote 0
          • A
            aakashjonwal
            last edited by

            Anyone can reply on this.. It's really apricated.

            cmcdonaldC 1 Reply Last reply Reply Quote 0
            • cmcdonaldC
              cmcdonald Netgate Developer @aakashjonwal
              last edited by

              @aakashjonwal so a few things to note. Yes keys are stored in plain text on disk. WireGuard itself doesn't attempt to solve the key exchange or key storage problem. However, pfSense already supports encrypted configuration backups for both manual and ACB backups. For someone to extract your keys they'd have to get root access to your firewall...and at that point you've got bigger issues to worry about.

              I have mentally considered an additional layer for the extremely paranoid, but because pfsense already has encrypted configuration backup capabilities, I don't plan on spending much time on this any time soon.

              Need help fast? https://www.netgate.com/support

              P 1 Reply Last reply Reply Quote 1
              • P
                psp @cmcdonald
                last edited by

                @theonemcdonald said in Wireguard Public and Private Key Protection:

                I have mentally considered an additional layer for the extremely paranoid, but because pfsense already has encrypted configuration backup capabilities, I don't plan on spending much time on this any time soon.

                Fully agreed.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.