Purchase X.509 certificates from a root certificate authority (CA). This method is recommended for production environments. The hardware security module, or HSM, is used for secure, hardware-based storage of device secrets, and is the most secure form of secret storage. Both X.509 certificates and SAS tokens can be stored in the HSM Reference: https://docs.microsoft.com/en-us/azure/iot-dps/concepts-security