An electronic device comprising: a network interface configured to wirelessly communicate with a second electronic device of a wireless mesh network; a processor; a memory comprising instructions to join the electronic device to the wireless mesh network, the instructions, which when executed by the processor, configure the electronic device to: establish, via wireless communication with the second electronic device, a Datagram Transport Layer Security, DTLS, session to allow the electronic device to join the wireless mesh network, the DTLS session based on a cipher suite and a key, wherein the key is stored in the electronic device prior to establishing the DTLS session; generate a second key based on the cipher suite and the key, and utilize the second key in subsequent communications between the electronic device and the second electronic device; in response to the establishment of the DTLS session, receive a network key via the network interface, the network key being associated with the mesh network; and communicate with devices in the mesh network utilizing the network key, wherein the network key is configured to enable the electronic device to communicate with the devices authorized to communicate with each other in the wireless mesh network. a network interface configured to wirelessly communicate with a second electronic device of a wireless mesh network; a processor; a memory comprising instructions to join the electronic device to the wireless mesh network, the instructions, which when executed by the processor, configure the electronic device to: establish, via wireless communication with the second electronic device, a Datagram Transport Layer Security, DTLS, session to allow the electronic device to join the wireless mesh network, the DTLS session based on a cipher suite and a key, wherein the key is stored in the electronic device prior to establishing the DTLS session; generate a second key based on the cipher suite and the key, and utilize the second key in subsequent communications between the electronic device and the second electronic device; in response to the establishment of the DTLS session, receive a network key via the network interface, the network key being associated with the mesh network; and communicate with devices in the mesh network utilizing the network key, wherein the network key is configured to enable the electronic device to communicate with the devices authorized to communicate with each other in the wireless mesh network. establish, via wireless communication with the second electronic device, a Datagram Transport Layer Security, DTLS, session to allow the electronic device to join the wireless mesh network, the DTLS session based on a cipher suite and a key, wherein the key is stored in the electronic device prior to establishing the DTLS session; generate a second key based on the cipher suite and the key, and utilize the second key in subsequent communications between the electronic device and the second electronic device; in response to the establishment of the DTLS session, receive a network key via the network interface, the network key being associated with the mesh network; and communicate with devices in the mesh network utilizing the network key, wherein the network key is configured to enable the electronic device to communicate with the devices authorized to communicate with each other in the wireless mesh network.