Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including azure-iot-security-symmetric-key with all npm packages installed. Try it out:

var azureIotSecuritySymmetricKey = require("azure-iot-security-symmetric-key")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

azure-iot-security-symmetric-key v1.5.9

Azure IoT Symmetric Key Security Client

Security module used to provide Symmetric Key authentication capabilities to the Azure IoT Hub device client and Azure IoT Hub Provisioning Service device client.

npm version

Install

There are at least 3 different packages involved when writing code to take advantage of the Azure IoT Hub Device Provisioning Service:

  • The "client" package that will be used to create a provisioning client. This is the azure-iot-provisioning-device package.
  • the "transport" package that will decide which protocol will be used to communicate with the provisioning service. One of azure-iot-provisioning-device-amqp, azure-iot-provisioning-device-mqtt, or azure-iot-provisioning-device-http. Please note that Symmetric Key authentication is supported with all protocols but TPM authentication is supported only with AMQP and HTTP.
  • The "security client" package that will be used to interface with whatever type of security (x509, TPM, or Symmetric Key) is used to authenticate the device. This package (azure-iot-security-symmetric-key) provides Symmetric Key authentication capabilities.

For example:

npm install --save azure-iot-provisioning-device
npm install --save azure-iot-provisioning-device-amqp # Or -mqtt or -http
npm install --save azure-iot-security-symmetric-key

Getting Started

To get started please read our Overview of the Device Provisioning Service and visit our tutorials pages

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free