amazon-web-services - 证书未由受信任的 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)
解决方案
推荐阅读
- c# - REST Web API 上带有 JWT 的 x-access-token 标头
- spring-boot - 具有事务、多线程的 Spring-Kafka
- javascript - jQuery - 按升序排列 div
- node.js - req.isAuthenticated() 在passportjs中一直返回false
- python - 需要帮助 费马的素数计算
- python - 熊猫的价值范围
- excel - 如何将单元格A和B中的两个手动输入的数字相加,并使用excel-VBA自动在单元格C中输出它们旁边的结果?
- python - Scapy 多个嗅探过滤器不起作用?
- c# - 如何将值从 InputFields 移动到 GameObject 脚本中的变量
- dart - 如何解决运行“flutter packages get”