On Thu, Jul 11, 2019 at 3:48 AM Amit Goyal <[email protected]> wrote:

> Hi Federico
>
> Thanks for providing so details answer. Sure it will help me .
>
> One more query -: *Can we register device only with MAC address
> information* ? If we do device registration using HTTP resource , minimum
> information required is UUID and KEY or Shared_Secret .
>
> Client does want to share shared_secret due to security reason and  UUID &
> Key is generated by Openwisp itself .  Is there way we can generate UUID &
> Key using Device Mac Address ?
>

Not at the moment, but regarding the key, when using "consistent key
generation
<https://github.com/openwisp/openwisp-config#consistent-key-generation>",
which is enabled by default, the key is generated consistently according to
the mac address and the shared secret.
It means that the key is always the same for the same device. So if the
device flash is reset and it registers again it will use the same DB object.

If you want to generate your own UUID and keys, instead of using the HTTP
resource you have to use the Django ORM to create Device and Config objects
manually, depends on your experience with django, for someone who has some
experience with Django and the django ORM, doing this is almost trivial,
you just need to understand how the base models of openwisp-controller work.

Best regards
Federico

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/openwisp/CAERYH6XG%3D4Y7Z4kM1dCshU7QuU8TubeAQ%2BKHhF8My3PUj%2BFF4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to