Wireless sensor networks are becoming an important facilitator for the Internet of Things. These embedded devices can harvest different types of information such as temperature, pressure and humidity, which offer important data for making decisions regarding various applications such as healthcare, logistics and smart homes. Different sensors working together act as a local sensor network. With the advent of the new 6LowPan standard the sensor nodes can even participate in Internet communications, opening up even more possibilities. The downside is that these networks are more prone to intrusion by unwanted parties. Furthermore implementing security is not straightforward due to the constrained nature of the sensor nodes, although different solutions have been proposed. One of the remaining and most challenging issues is the key management problem. In this paper, we propose a symmetric key management scheme for wireless sensor networks that uses tamper-proof hardware for key generation and distribution. The scheme requires no deployment knowledge before enrolling and makes use of a trusted central entity for key negotiation to provide end-to-end security. Our implementation and evaluation were performed on the tiny Zolertia Z1 hardware platform, running Contiki-OS. The performance and security evaluation show * This work is funded by the IWT-TETRA project 120105: 6LoWPAN -Towards zeroconfiguration for wireless building automation.