ssl - ESP8266 的 Arduino 库 - WiFiClientSecure - 需要哪些 SSL 证书?

标签 ssl esp8266 lets-encrypt arduino-esp8266 certbot

ESP8266 的 Arduino 库的

WiFiClientSecure 有方法:setCACertsetCertificatesetPrivateKey

我需要一些解释是什么以及用于什么目的。

当我使用 Let's Encrypt 为我的服务器创建证书时,我得到了 cert.pemchain.pem fullchain.pem, privkey.pem.

WiFiClientSecure 应使用哪些文件? 我是否应该为作为客户端工作的 ESP 生成另一个私钥?

@编辑

好的,到目前为止我了解到每个 ESP8266 的私钥都不同。但我仍然不知道如何处理它。如何生成这些私钥?如何从服务器端处理它们?

最佳答案

如果你想使用客户端验证,你需要这两个:

  • setCertificate:这将是您的客户端证书
  • setPrivateKey:这将是相应的 key

这是一个我觉得有用的网站:

https://nofurtherquestions.wordpress.com/2016/03/14/making-an-esp8266-web-accessible/ - “代码”一章

关于ssl - ESP8266 的 Arduino 库 - WiFiClientSecure - 需要哪些 SSL 证书?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42766670/

相关文章:

ssl - 如何在 ISPConfig 3 中强制更新 Let's Encrypt 证书?

android - javax.net.ssl.SSLPeerUnverifiedException : No peer certificate on HttpClient but works fine with HttpUrlConnection

email - Outlook Mailcow 错误的 ssl 证书

apache - 如何避免在 LAN 网站上出现自签名 SSL 警告?

Arduino/Esp8266红外遥控载频

json - ESP8266 - PubSubClient - 消息字符限制

http - 使用 ESP8266WiFi 库发送 HTTP POST 请求

ssl - Traefik V2 和 Cloudflare : SSL error subdomain ERR_SSL_VERSION_OR_CIPHER_MISMATCH

mysql - Heroku SSL 连接错误不支持的协议(protocol)

java - 在 Websphere App Server 和 Websphere MQ 之间配置 SSL