This document proposes a key distribution mechanism for secure communication in ad-hoc networks. It combines identity-based and threshold cryptography to efficiently distribute keys while respecting the constraints of ad-hoc networks. At network formation, participating nodes will generate a master public key for an identity-based cryptosystem in a distributed manner, while sharing the master secret key using threshold cryptography. This allows all network members to use their identity as their public key and obtain the corresponding secret key by interacting with a threshold of nodes.