1. Run ./gencrt.sh or if you have your own certificate, move to the openssl_client directory, the name is ca.crt,server.crt, server.key, client.crt and client.key.
The server.crt and client.crt was generate by the same ca.crt in ./gencrt.sh.
Server side needs ca.crt(to verify client.crt), server.crt, server.key
Client side needs ca.crt(to verify server.crt), client.crt, client.key
If you have two ca.crt to generate server.crt and client.crt respectively, client1.crt is generate by ca1.crt and client1.key, server2.crt is generate by ca2.crt and server2.key:
Client side needs ca2.crt, client1.crt, client1.key.
Server side needs ca1.crt, server2.crt, server2.key.
Rename ca2.crt client1.crt client1.key to ca.crt client.crt client.key and run ./genheader.sh.
Use ca1.crt in openssl s_server -CAfile option.
2. Run ./genheader.sh.
3. Modify this two lines in file openssl_demo.c to your computer server ip and port.
```#define OPENSSL_DEMO_TARGET_NAME "192.168.3.196"```
```#define OPENSSL_DEMO_TARGET_TCP_PORT 443```
4. Modify thease two lines in file user_config.h to your local Wi-Fi SSID and Password.
```#define SSID "HUAWEI001"```
```#define PASSWORD ""```
5. Make sure that the computer and ESP8266 are in the same local area network.
6. Run ./gen_misc.sh.
7. Run openssl s_server -CAfile ca.crt -cert server.crt -key server.key -verify 1 -tls1_1 -accept 443.
8. Download bin file to ESP8266.
**ATTENTION**
**1. Make sure the free heap size larger than 30K.**
**2. Make sure the private key length larger than 2048.**
**3. Make sure the fragment size range is between 2048 and 8192.**
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ESP8266_RTOS_SDK-master.zip_8266_8266压缩html_8266固件库_esp8266_esp8 (1019个子文件)
libcirom.a 4.92MB
libmirom.a 2.15MB
libmbedtls.a 596KB
libgcc.a 587KB
liblwip.a 509KB
libwps.a 264KB
libnopoll.a 250KB
libnet80211.a 241KB
libpp.a 233KB
libssl.a 216KB
libphy.a 197KB
libmain.a 196KB
libspiffs.a 134KB
libwpa.a 127KB
libsmartconfig.a 102KB
libcrypto.a 101KB
libopenssl.a 96KB
libespconn.a 88KB
libfreertos.a 81KB
libmqtt.a 75KB
libjson.a 51KB
libespnow.a 41KB
libdriver.a 41KB
libssc.a 38KB
libminic.a 22KB
libairkiss.a 11KB
libpwm.a 9KB
gen_misc.bat 3KB
gen_misc.bat 3KB
gen_misc.bat 3KB
gen_misc.bat 3KB
gen_misc.bat 3KB
gen_misc.bat 3KB
blank.bin 4KB
boot_v1.7.bin 4KB
boot_v1.6.bin 4KB
esp_init_data_default.bin 128B
ssl_tls.c 240KB
nopoll_conn.c 137KB
ssl_srv.c 126KB
ssl_cli.c 108KB
mib2.c 103KB
tasks.c 99KB
nopoll-regression-client.c 89KB
sockets.c 80KB
ssl_ciphersuites.c 79KB
dhcp.c 72KB
x509_crt.c 69KB
spiffs_nucleus.c 69KB
queue.c 67KB
ssl_tls1.c 63KB
ecp.c 63KB
espconn_tcp.c 62KB
tcp_in.c 61KB
tcp.c 58KB
ppp.c 58KB
nd6.c 56KB
lcp.c 56KB
bignum.c 56KB
nopoll.c 54KB
espconn.c 53KB
etharp.c 52KB
ecp_curves.c 51KB
api_msg.c 51KB
tcp_out.c 50KB
aes.c 50KB
rsa.c 49KB
spiffs_check.c 43KB
msg_in.c 43KB
ssl_platform.c 42KB
pbuf.c 40KB
ssl_bigint.c 39KB
pkparse.c 38KB
ipcp.c 38KB
test_hydrogen.c 38KB
udp.c 37KB
ecjpake.c 37KB
cipher_wrap.c 36KB
error.c 36KB
ip6.c 35KB
auth.c 35KB
camellia.c 34KB
ppp_oe.c 33KB
dhcpserver.c 32KB
ip4.c 32KB
dns.c 31KB
ssl_lib.c 31KB
des.c 31KB
gcm.c 30KB
mib_structs.c 29KB
ip_frag.c 28KB
heap_5.c 28KB
x509.c 28KB
netif.c 27KB
cJSON.c 27KB
igmp.c 27KB
timers.c 26KB
spiffs_hydrogen.c 26KB
sockets_mt.c 25KB
cipher.c 25KB
共 1019 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
Kinonoyomeo
- 粉丝: 76
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功