运行Azure C Iot SDK示例时,获取[错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败] [英] when run the Azure C Iot SDK sample, get [error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed]

查看:263
本文介绍了运行Azure C Iot SDK示例时,获取[错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:

   我建立了"azure-iot-sdk-c"并获取样品.当我在Windows和Ubuntu上使用它时.它连接到Iot-hub,并正常运行.

   但是,当我通过交叉编译为带有ARM处理器的设备构建并运行"simplesample_mqtt"时,也.它低于错误.

/home#./simplesample_mqtt
IoTHubClient接受了传递消息
错误:时间:Sun Jan 6 11:29:58 1980文件:/media/iot_arm/azure-iot-sdk-c/c-utility/adapters/tlsio_openssl.c Func:send_handshake_bytes Line:673错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败

   有没有人可以给这个错误一些提示.

     谢谢.

解决方案

由于使用的证书中的错误,看来SSL握手无法通过:

https://github.com/Azure/azure -c-shared-utility/blob/1d622902d7842f94193fc394987f2b4e978bb700/adapters/tlsio_openssl.c#L659

编译SDK所用的ARM处理器和设备是什么?您在该设备上是否有可用的服务器证书(巴尔的摩)?请参阅: https://github.com/Azure/azure-iot-sdk- c/tree/master/certs

谢谢! /blockquote>

Hello everyone:

    I build "azure-iot-sdk-c"  and get the sample. when I use it on Windows and Ubuntu. It connects to Iot-hub, and runs normally.

    But when I build for device with ARM processor by cross compiling , and run the "simplesample_mqtt" too. It gets below error.

/home # ./simplesample_mqtt
IoTHubClient accepted the message for delivery
Error: Time:Sun Jan  6 11:29:58 1980 File:/media/iot_arm/azure-iot-sdk-c/c-utility/adapters/tlsio_openssl.c Func:send_handshake_bytes Line:673 error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    Is there anybody can give some hint about this error.

     thanks.

解决方案

Hi,

It looks like the SSL Handshake doesn't get through due to errors on the certificate used:

https://github.com/Azure/azure-c-shared-utility/blob/1d622902d7842f94193fc394987f2b4e978bb700/adapters/tlsio_openssl.c#L659

What is the ARM Processor and the device you cross compiled the SDK for? Do you have the Server certificate (Baltimore) available on that device? See: https://github.com/Azure/azure-iot-sdk-c/tree/master/certs

Thanks!


这篇关于运行Azure C Iot SDK示例时,获取[错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆