This section lists the steps to onboard your gateway using the property-based authentication method.
Prerequisites
- You must have the CREATE DEVICE permission to perform this operation.
- You must have installed the IoTC Agent on your gateway.
- You must have created a device template with Property Based as the Provider Type, and it must be available on the VMware Pulse IoT Center console.
- You must know the name that you want to assign to your gateway in the VMware Pulse IoT Center console.
Procedure
- From the VMware Pulse IoT Center UI, go to Inventory > Devices.
The Devices - All Devices page is displayed.
- Click REGISTER.
The Register Gateway wizard is displayed.
- Enter your gateway name and select the device template that has Property-Based Authentication enabled to associate with your gateway.
- Click REGISTER.
Your gateway is registered and is listed in the Devices - All Devices page.
- Create a credential to enroll your gateway. From the Devices -All Devices page, click the gateway that you registered.
- Click the Actions drop-down menu and select Create Gateway Credentials. Click CREATE.
- Enter a value for the keys that you defined when you create the device template. The key and value pair must be unique for all the devices that you have configured under your Organization. The device must send the same key and value pair to the server.
- Log in to your gateway and change the directory to /opt/vmware/iotc-agent/bin.
- Run the following command:
./iotc-agent-cli enroll --auth-type=PROPERTY --key=<identitykey> --value=<correspondingvalue>
Results
For a successful enrollment, the response must be O
.