sim800如何获得ssl证书? [英] How sim800 get ssl certificate?

查看:120
本文介绍了sim800如何获得ssl证书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sim800支持SSL协议. AT命令"AT + CIPSSL"将TCP设置为使用SSL功能. 在"sim800_series_ssl_application_note_v1.01.pdf"中指出:模块在TCP连接后将自动开始SSL证书". 我的问题:开始使用SSL证书的确切含义是什么? sim800到底能做什么? sim800是否从网站获得SSL证书? sim800在哪里保存SSL证书?

解决方案

据我所知,SIM800中包含一些证书,当您使用TCP + SSL或HTTP + SSL连接时,它将自动使用这些证书. /p>

如果这些证书不合适,则需要使用SD卡,在其中保存所需的证书,然后使用命令AT + SSLSETCERT设置保存在SD卡上的证书. 在这里,您可以找到如何使用文件系统.

通常,模块随附的证书就足够了,您将不需要此证书.但是例如,当我尝试通过MQTT与Azure通信时,它们对我不起作用.我必须自己使用wolfSSL库对数据进行加密,然后使用不带SSL的TCP来发送数据.

注意:并非所有SIM800模块都支持SD卡.

Sim800 supports SSL protocol. AT command "AT+CIPSSL" sets TCP to use SSL function. In the "sim800_series_ssl_application_note_v1.01.pdf" is noted that: "Module will automatic begin SSL certificate after TCP connected." My Problem: What is the exact meaning of the begin SSL certificate? what does sim800 do exactly? Does sim800 get SSL certificate from website? where does sim800 save SSL certificate?

解决方案

As far as I know, SIM800 has some certificates in it and when you use a TCP+SSL or HTTP+SSL connection it will automatically use those certificates.

If those certificates are not ok for you, you will need to use an SD card, save there the certificates you want and use the command AT+SSLSETCERT to set the certificate you saved on your SD card. Here you can find how to use the File System.

Usually the certificates that come with the module are enough and you won't need this. But for example they didn't work for me when I tried to communicate with Azure via MQTT. I had to encrypt the data myself using wolfSSL library and send it using TCP without SSL.

Note: Not all SIM800 modules have SD card support.

这篇关于sim800如何获得ssl证书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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