ESP8266中的SSL(Arduino库) - 如何处理证书更改? [英] SSL in ESP8266 (Arduino library) - How to handle certificate changes?

查看:532
本文介绍了ESP8266中的SSL(Arduino库) - 如何处理证书更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为ESP8266使用Arduino库。

I'm using Arduino library for ESP8266.

目前为了使用 HTTPClient 您需要提供SSL指纹。
目前没有可能接受每个证书(使用库的方法)。

As for now in order to make SSL request using HTTPClient you need to provide SSL fingerprint. There's no possibility to accept every certificate at the moment (using library's methods).

我想知道你们如何处理它,因为指纹可以改变随着时间的推移。

I'm wondering how you guys handle it, because the fingerprint can change over time.

我应该通过HTTP从另一个端点获取服务器的指纹,然后使用HTTPS吗?或者可能有更好的方法?

Should I get my server's fingerprint over HTTP from another endpoint and then use HTTPS? Or maybe there's a better approach?

推荐答案

只是为了更新:现在,可以设置CA root:

Just to update: Now, there's a possibility to set CA root:

https:/ /github.com/esp8266/Arduino/tree/master/libraries/ESP8266WiFi/examples/HTTPSRequestCACert

然而,这需要一些小的改进,但一般来说工作。

This, however, needs some small improvements but it's generally working.

这篇关于ESP8266中的SSL(Arduino库) - 如何处理证书更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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