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

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

Scheduled Pinned Locked Moved Development
4 Posts 2 Posters 323 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
    aimad
    last edited by Jun 1, 2020, 5:24 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Jun 1, 2020, 5:52 PM

      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 Jun 1, 2020, 6:00 PM

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

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Jun 1, 2020, 6:02 PM

          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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received