gpt4 book ai didi

ssl - 嵌入式系统客户端 - SSL 证书

转载 作者:太空宇宙 更新时间:2023-11-03 14:46:40 36 4
gpt4 key购买 nike

我正在开发一种产品,它每天都会通过 http 将一些数据发布到我的服务器。服务器不向我的设备发送任何数据/请求(HTTP 状态除外)。我使用 redpine 无线模块 RS9113 为我做连接件。我希望此通信启用 https 并且我的网络服务器已经拥有 CA 颁发的证书。

问题是:

  1. 当我从我的嵌入式设备执行 POST 时,我的理解是 SSL 库会检查服务器证书的有效性。我说得对吗?

  2. 如果我的客户端不需要证书,是否意味着服务器的公钥存储在无线模块中(每次都用于加密)?我猜想这是我需要问 redpine 无线人员的问题,但是您能给我一个大概的了解吗?

  3. 在此设置中,我的嵌入式设备上是否需要任何证书?如果有人将数据发布到服务器,我没问题,因为我们有标识符可以清除不符合要求的数据结构。如果设备上没有证书,如果我们 POST,是否意味着数据是从设备服务器加密的?

额外的问题:在此设置中,如果我在服务器上的证书已更新,是否会导致发送数据时出现任何问题?

最佳答案

我不知道redpine无线模块,所以把这个回答作为对SSL的一般疑惑的解决

When I do a POST from my embedded device, my understanding is that the SSL library would check the validity of the server certificate. Am I right ?

是的,SSL 库应该检查证书的颁发者(根 CA)或证书本身是否存在于信任库中。如果您使用信任库中不存在的自签名证书或 CA,则必须在信任库中包含公钥

If my client doesnt need a certificate, does it mean the public key of the server is stored on the wireless module (and this is used for encryption everytime) ?

这两件事没有关系。您需要无线模块中服务器的公钥才能建立信任。如果您使用双向身份验证,则需要客户端证书。客户端证书在 SSL 握手期间提供,以向服务器验证客户端

In this setup, do I need to have any certificate ON my embedded device ?

否,如果不需要两种方式的认证

If there is no cert on the device and if we POST, does it mean that the data is encrypted from device-server ?

客户端证书(如果有)不用于加密。用于在初始握手期间进行身份验证。握手建立一个对称 key ,用于加密和解密双方的通信。

In this setup, if my cert on the server is renewed, will it cause any problems in sending the data ?

取决于客户端信任库上服务器证书的设置。如果新证书是同方签发的,导入根CA就可以了。如果您使用自签名证书,则需要导入新证书

关于ssl - 嵌入式系统客户端 - SSL 证书,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38386651/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com