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

    How <refid>code in the confing.xml is generated?</refid>

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 815 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.
    • S
      sparkvilla
      last edited by

      Hi all. By looking at the config.xml file I have found under the certificate ( <cert>tag) the <refid>tag, i.e.

      <cert><refid>5715fc5f5b530</refid>

      I was wandering, How the  <refid>code is generated? and could I generated with python?

      Thank you</refid></cert></refid></cert>

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It's generated with php's uniqid() function. It doesn't matter what the ID actually is, so long as it's referenced consistently. The format isn't set in a spec or anything, we just use uniqid() since it's quick/easy and easier to look at than a full uuid…

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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