Provision a fleet
Bake shared connection settings into a device image and give every device its own bootstrap certificate.
Hop can enroll many devices into the same Project without manual steps. Devices share the server address and the trust root pin, and each device has its own bootstrap certificate and private key.
Put these items in the shared device image:
- The Hoplet package
server.urlandtrust.root_pinin aconfig.dfile (Site settings)- The service enabled with
systemctl enable hoplet
Keep /var/lib/hop/hoplet out of the shared image. Hoplet writes the identity of each device there.
Map certificate issuers to Projects
An active Enrollment Policy lets devices with bootstrap certificates from a Trusted Issuer join its Project automatically.
Different issuing CAs can route devices to different Projects, for example by site or customer. Each bootstrap certificate must match exactly one active policy.
Enrollment Policies need only the public CA certificate. The CA's private key stays separate from Hop and the devices.
Hoplet reads additional YAML files in /etc/hop/hoplet/config.d/. These files can hold shared connection settings or values specific to a device. See Hoplet configuration for the file reference and configuration order.
Site settings
All devices that connect to the same Hop share the server address and the trust root pin:
See Get the trust root pin to get the pin.
Device settings
Each device can have its own Device ID, vendor, model and labels in a separate file:
Deliver each device's bootstrap certificate
Install a unique bootstrap certificate and its key at /etc/hop/hoplet/bootstrap.pem and /etc/hop/hoplet/bootstrap.key, for example on the production line. Restrict the key to mode 0600. Hoplet enrolls the device when the service starts for the first time.
For encrypted key delivery, see Protect the bootstrap key.