首页 > 解决方案 > 证书未由受信任的 CA 正确签名

问题描述

请我寻求帮助...

我正在使用 stm32l475 IoT 节点板,实际上我正在处理 x-cube cmdgen-IoT-cloud-generic 包,它需要一个 aws amazon 帐户才能用于 iot 应用程序。实际上,在将固件加载到板后,我使用 tera term 作为可视化终端,它要求我在下面插入这些东西:

-Enter the connection string of your device:
template with MQTT authentication:    HostName=xxx;HostPort=xxx;ConnSecurity=x;MQClientId=xxx;MQUserName=xxx;MQUserPwd=xxx;
template without MQTT authentication: HostName=xxx;HostPort=xxx;ConnSecurity=x;MQClientId=xxx;
(in this case, I'm using mqtt template and I'm putting the hostname as "a376ne315hxclq-ats.iot.us-east-2.amazonaws.com")
-IoT device connection parameters
-the root CA certificate
-the device certificate
-device key

我想问一下设备密钥是否是我在生成 aws 帐户或其他东西时获得的私钥,因为在应用私钥后出现此错误:

ERROR: net_sock_open_mbedtls L#327 Server verification:
  ! The certificate is not correctly signed by the trusted CA

ERROR: net_sock_open_mbedtls L#334  failed
  ! mbedtls_ssl_handshake returned -0x2700
ERROR: genericmqtt_client_XCube_sample_run L#451 Could not open the socket at a376ne315hxclq-ats.iot.us-east-2.amazonaws.com port 8883.
../../../../../../Middlewares/Third_Party/mbedTLS/library/ssl_tls.c:4587: x509_verify_cert() returned -9984 (-0x2700)

标签: amazon-web-services

解决方案


推荐阅读