webclient使用问题

发布于 2020-06-15 16:53:08
hello:
我在使用webclient自带的wget时遇到如下两个问题,还请各位大神指教一下.

1.链接明明是http怎么提示需要enable https configure.
msh />webclient_pull http://www.rt-thread.com /service/rt-thread.txt
[E/web] not support https connect, please enable webclient https configure!
[E/web.file] get file failed, wrong response: -1 (-0xFFFFFFFF).
msh />
2.配置了mebdtls作为加密方式,又出现如下问题.
[E/mbedtls.clnt] verify peer certificate fail....
[E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA
! The certificate validity starts in the future
好像是证书不对?
msh />webclient_pull http://www.rt-thread.com /service/rt-thread.txt
[D/mbedtls.clnt] Set debug level (2)
[D/mbedtls.clnt] mbedtls client struct init success...
[D/mbedtls.clnt] Loading the CA root certificate success...
[D/mbedtls.clnt] mbedtls client context init success...
[D/mbedtls.clnt] Connected www.rt-thread.org:443 success...
[D/mbedtls.clnt] mbedtls_ssl_handshake:6651: => handshake...[D/mbedtls.clnt] mbedtls_ssl_flush_output:2464: message length: 7, out_left: 7[D/mbedtls.clnt] mbedtls_ssl_flush_output:2471: ssl->f_send() returned 7 (-0xfffffff9)[D/mbedtls.clnt] mbedtls_ssl_flush_output:2490: <= flush output[D/mbedtls.clnt] mbedtls_ssl_write_record:2889: <= write record[D/mbedtls.clnt] mbedtls_ssl_send_alert_message:4183: <= send alert message[D/mbedtls.clnt] mbedtls_ssl_parse_certificate:4730: <= parse certificate[D/mbedtls.clnt] mbedtls_ssl_handshake:6661: <= handshake[E/mbedtls.clnt] verify peer certificate fail....
[E/mbedtls.clnt] verification info: ! The certificate is not correctly signed by the trusted CA
! The certificate validity starts in the future[E/web] connect failed, https client connect return: -0x1
[E/web.file] get file failed, wrong response: -6 (-0xFFFFFFFA).
[D/mbedtls.clnt] mbedtls_ssl_close_notify:7282: => write close notify[D/mbedtls.clnt] mbedtls_ssl_close_notify:7298: <= write close notify

查看更多

关注者
0
被浏览
47
0 个回答
暂无答案,快来添加答案吧

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友