使用 Azure 演示证书在 IoT Edge 设备上设置产品证书时出现错误 "could not load cert with ID "aziot-edged-ca""

getting error "could not load cert with ID "aziot-edged-ca"" while setting up prod certs at IoT Edge Device using azure demo certs

我正在测试按照“https://docs.microsoft.com/en-us/azure/iot-edge/how-to-manage-device-certificates?view=iotedge-2020-11”中提到的步骤在 IoT Edge 设备上使用 azure 演示证书安装证书.但是我在 运行 iotedge check 命令

时遇到以下错误
× read all preloaded certificates from the Certificates Service - Error
    could not load cert with ID "aziot-edged-ca"
    
    Caused by:
        internal error
    could not load cert with ID "aziot-edged-trust-bundle"
    
    Caused by:
        internal error
    could not load cert with ID "trust-bundle-user"
    
    Caused by:
        internal error
'''

在大多数情况下,这是由文件权限错误引起的。确保 iotedge 用户对目录和里面的证书有读取权限。