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

    Is it possible to secure client certificates when exporting a client configuration?

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 537 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.
    • B
      bp81
      last edited by

      As the title asks.

      I am setting up a VPN remote access server using OpenVPN and am using client certificate + username and password authentication.

      I'm noting that when I export an inline config file for a testing client, it is including the certificates in the inline configuration file. It is also includes the private key of the client certificate in plain text.

      This is a major security flaw. There is no issue with distributing client certificates to clients (obviously) but this needs to be done with the private keys being password protected as is done in a pfx / p12 file.

      I did check the box that says "Password Protect Certificate" before exporting. However, reading the fine print, it appears that only works for Viscosity clients, and not for the inline configuration for OpenVPN Connect clients.

      Is there a way to make the OpenVPN Connect client rely on a Windows machine's certificate store instead of directly distributing certificates? This would give me a more secure way to distribute client certificates.

      bingo600B 1 Reply Last reply Reply Quote 0
      • GilG
        Gil Rebel Alliance
        last edited by

        The variety of Inline client apps that will connect to pfSense have no capability to support an encrypted config file.
        So ther is no functional way for the pfSense client export to encrypt the file.
        You will need to encrypt the Inline client via other means when distributing,
        such as zipping the file and password protecting it, or coping the inline config into a word doc and password protecting that.
        I guess it depends on what your end users are capable of doing at their end.

        11 cheers for binary

        1 Reply Last reply Reply Quote 0
        • bingo600B
          bingo600 @bp81
          last edited by

          @bp81

          I'm distributing the "Client Export set of files" in a password protected zip file.

          /Bingo

          If you find my answer useful - Please give the post a šŸ‘ - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPUĀ  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LANĀ  : 4 x Intel 211, DiskĀ  : 240G SAMSUNG MZ7L3240HCHQ SSD

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