How <refid>code in the confing.xml is generated?</refid>
-
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>
-
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…
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.