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

    What encoding is used on the OVPN certificates and keys in config.xml?

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 1 Posters 2.1k 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
      Briantist
      last edited by

      I am writing a script to help me automate the writing of new configurations as I roll out pfSense, and I'm trying to write out some OpenVPN settings. I quickly realized that the certificates and keys are encoded. I thought it might have been base64 but that isn't looking right. The config file has them as a single line and my base64 encoded stuff is coming out as multiple lines. Can anyone tell me what the encoding is? Thanks.

      1 Reply Last reply Reply Quote 0
      • B
        Briantist
        last edited by

        Never mind, I figured it out. It is base64 encoded, just without line breaks. I just removed all the line breaks from my encoded string.

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