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

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

    Development
    2
    4
    316
    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
      aimad
      last edited by

      Hi all.
      By looking at the config.xml file I have found under the certificate ( <cert>tag) the <caref>tag,
      <cert><caref>5715fc5f5b530</caref>

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

      Thank you
      </caref></cert></caref></cert>

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

        It is generated using PHP's uniqid() function. The value itself isn't a special format or meaningful in any way to that CA, it's just a value that is reliably unique which is used to track that specific entry. Sort of like a short UUID. There is likely a similar function in python.

        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 1
        • A
          aimad
          last edited by

          Thank you for the response
          its generated like the refid filed.

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

            On a cert, it's the refid of the CA that signed the cert. So it's copied from the CA refid.

            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 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.