华硕网络产品技术交流平台

 找回密码
 立即注册

QQ登录

只需一步,快速开始

手机号码,快捷登录

查看: 15|回复: 0

[求助] 路由器上无法访问https网站

[复制链接]

0

主题

2

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 昨天 10:30 | 显示全部楼层 |阅读模式
RT系列
机型名称: RT-BE88U
RT-BE88U 原版固件3.0.0.6.102_38151
---------------------------

ssh登录路由器,curl百度报错,用http去curl正常。连接到路由器的电脑可以正常curl https的百度
路由器:

  1. RT-BE88U-3968:/tmp/home/root# curl -4 -vv https://www.baidu.com
  2. *   Trying 183.2.172.17:443...
  3. * Connected to www.baidu.com (183.2.172.17) port 443 (#0)
  4. * ALPN: offers http/1.1
  5. *  CAfile: /etc/ssl/certs/ca-certificates.crt
  6. *  CApath: none
  7. * TLSv1.3 (OUT), TLS handshake, Client hello (1):
  8. * TLSv1.3 (IN), TLS handshake, Server hello (2):
  9. * TLSv1.2 (IN), TLS handshake, Certificate (11):
  10. * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  11. * TLSv1.2 (IN), TLS handshake, Server finished (14):
  12. * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  13. * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
  14. * TLSv1.2 (OUT), TLS handshake, Finished (20):
  15. * TLSv1.2 (IN), TLS handshake, Finished (20):
  16. * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
  17. * ALPN: server accepted http/1.1
  18. * Server certificate:
  19. *  subject: C=CN; ST=beijing; L=beijing; O=Beijing Baidu Netcom Science Technology Co., Ltd; CN=baidu.com
  20. *  start date: Jul  8 01:41:02 2024 GMT
  21. *  expire date: Aug  9 01:41:01 2025 GMT
  22. *  subjectAltName: host "www.baidu.com" matched cert's "*.baidu.com"
  23. *  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign RSA OV SSL CA 2018
  24. *  SSL certificate verify ok.
  25. > GET / HTTP/1.1
  26. > Host: www.baidu.com
  27. > User-Agent: curl/7.84.0
  28. > Accept: */*
  29. >
  30. * TLSv1.2 (OUT), TLS alert, protocol version (582):
  31. * OpenSSL SSL_read: error:1408F10B:lib(20):func(143):reason(267), errno 0
  32. * Closing connection 0
  33. curl: (56) OpenSSL SSL_read: error:1408F10B:lib(20):func(143):reason(267), errno 0
复制代码
电脑:
  1. PS C:\Users\Lecan> ./curl.exe -4 -vv https://www.baidu.com
  2. 10:29:16.094000 [0-0] * Host www.baidu.com:443 was resolved.
  3. 10:29:16.096000 [0-0] * IPv6: (none)
  4. 10:29:16.097000 [0-0] * IPv4: 183.2.172.17, 183.2.172.177
  5. 10:29:16.098000 [0-0] * [HTTPS-CONNECT] adding wanted h2
  6. 10:29:16.099000 [0-0] * [HTTPS-CONNECT] added
  7. 10:29:16.100000 [0-0] * [HTTPS-CONNECT] connect, init
  8. 10:29:16.101000 [0-0] *   Trying 183.2.172.17:443...
  9. 10:29:16.103000 [0-0] * [HTTPS-CONNECT] connect -> 0, done=0
  10. 10:29:16.105000 [0-0] * [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 0, done=0
  11. 10:29:16.106000 [0-0] * [HTTPS-CONNECT] adjust_pollset -> 1 socks
  12. 10:29:16.135000 [0-0] * ALPN: curl offers h2,http/1.1
  13. 10:29:16.137000 [0-0] * TLSv1.3 (OUT), TLS handshake, Client hello (1):
  14. 10:29:16.152000 [0-0] *  CAfile: C:\Users\Lecan\Downloads\curl-ca-bundle.crt
  15. 10:29:16.153000 [0-0] *  CApath: none
  16. 10:29:16.154000 [0-0] * [HTTPS-CONNECT] connect -> 0, done=0
  17. 10:29:16.155000 [0-0] * [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 0, done=0
  18. 10:29:16.157000 [0-0] * [HTTPS-CONNECT] adjust_pollset -> 1 socks
  19. 10:29:16.172000 [0-0] * TLSv1.3 (IN), TLS handshake, Server hello (2):
  20. 10:29:16.173000 [0-0] * TLSv1.2 (IN), TLS handshake, Certificate (11):
  21. 10:29:16.175000 [0-0] * TLSv1.2 (IN), TLS handshake, Server key exchange (12):
  22. 10:29:16.176000 [0-0] * TLSv1.2 (IN), TLS handshake, Server finished (14):
  23. 10:29:16.177000 [0-0] * TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
  24. 10:29:16.179000 [0-0] * TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
  25. 10:29:16.180000 [0-0] * TLSv1.2 (OUT), TLS handshake, Finished (20):
  26. 10:29:16.182000 [0-0] * [HTTPS-CONNECT] connect -> 0, done=0
  27. 10:29:16.183000 [0-0] * [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 0, done=0
  28. 10:29:16.184000 [0-0] * [HTTPS-CONNECT] adjust_pollset -> 1 socks
  29. 10:29:16.212000 [0-0] * TLSv1.2 (IN), TLS handshake, Finished (20):
  30. 10:29:16.214000 [0-0] * SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256 / secp256r1 / RSASSA-PSS
  31. 10:29:16.215000 [0-0] * ALPN: server accepted http/1.1
  32. 10:29:16.217000 [0-0] * Server certificate:
  33. 10:29:16.218000 [0-0] *  subject: C=CN; ST=beijing; L=beijing; O=Beijing Baidu Netcom Science Technology Co., Ltd; CN=baidu.com
  34. 10:29:16.220000 [0-0] *  start date: Jul  8 01:41:02 2024 GMT
  35. 10:29:16.221000 [0-0] *  expire date: Aug  9 01:41:01 2025 GMT
  36. 10:29:16.222000 [0-0] *  subjectAltName: host "www.baidu.com" matched cert's "*.baidu.com"
  37. 10:29:16.224000 [0-0] *  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign RSA OV SSL CA 2018
  38. 10:29:16.225000 [0-0] *  SSL certificate verify ok.
  39. 10:29:16.227000 [0-0] *   Certificate level 0: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
  40. 10:29:16.229000 [0-0] *   Certificate level 1: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
  41. 10:29:16.231000 [0-0] *   Certificate level 2: Public key type RSA (2048/112 Bits/secBits), signed using sha256WithRSAEncryption
  42. 10:29:16.233000 [0-0] * [HTTPS-CONNECT] connect+handshake h2: 131ms, 1st data: 70ms
  43. 10:29:16.234000 [0-0] * [HTTPS-CONNECT] connect -> 0, done=1
  44. 10:29:16.236000 [0-0] * [HTTPS-CONNECT] Curl_conn_connect(block=0) -> 0, done=1
  45. 10:29:16.237000 [0-0] * Connected to www.baidu.com (183.2.172.17) port 443
  46. 10:29:16.239000 [0-0] * using HTTP/1.x
  47. 10:29:16.240000 [0-0] > GET / HTTP/1.1
  48. 10:29:16.240000 [0-0] > Host: www.baidu.com
  49. 10:29:16.240000 [0-0] > User-Agent: curl/8.13.0
  50. 10:29:16.240000 [0-0] > Accept: */*
  51. 10:29:16.240000 [0-0] >
  52. 10:29:16.245000 [0-0] * Request completely sent off
  53. 10:29:16.338000 [0-0] < HTTP/1.1 200 OK
  54. 10:29:16.339000 [0-0] < Accept-Ranges: bytes
  55. 10:29:16.340000 [0-0] < Cache-Control: private, no-cache, no-store, proxy-revalidate, no-transform
  56. 10:29:16.342000 [0-0] < Connection: keep-alive
  57. 10:29:16.343000 [0-0] < Content-Length: 2443
  58. 10:29:16.344000 [0-0] < Content-Type: text/html
  59. 10:29:16.345000 [0-0] < Date: Sun, 04 May 2025 02:29:21 GMT
  60. 10:29:16.346000 [0-0] < Etag: "588603e2-98b"
  61. 10:29:16.347000 [0-0] < Last-Modified: Mon, 23 Jan 2017 13:23:46 GMT
  62. 10:29:16.348000 [0-0] < Pragma: no-cache
  63. 10:29:16.349000 [0-0] < Server: bfe/1.0.8.18
  64. 10:29:16.350000 [0-0] < Set-Cookie: BDORZ=27315; max-age=86400; domain=.baidu.com; path=/
  65. 10:29:16.352000 [0-0] <
  66. <!DOCTYPE html>
  67. <!--STATUS OK--><html> <head><meta http-equiv=content-type content=text/html;charset=utf-8><meta http-equiv=X-UA-Compatible content=IE=Edge><meta content=always name=referrer><link rel=stylesheet type=text/css href=https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/bdorz/baidu.min.css><title>百度一下,你就知道</title></head> <body link=#0000cc> <div id=wrapper> <div id=head> <div class=head_wrapper> <div class=s_form> <div class=s_form_wrapper> <div id=lg> <img hidefocus=true src=//www.baidu.com/img/bd_logo1.png width=270 height=129> </div> <form id=form name=f action=//www.baidu.com/s class=fm> <input type=hidden name=bdorz_come value=1> <input type=hidden name=ie value=utf-8> <input type=hidden name=f value=8> <input type=hidden name=rsv_bp value=1> <input type=hidden name=rsv_idx value=1> <input type=hidden name=tn value=baidu><span class="bg s_ipt_wr"><input id=kw name=wd class=s_ipt value maxlength=255 autocomplete=off autofocus=autofocus></span><span class="bg s_btn_wr"><input type=submit id=su value=百度一下 class="bg s_btn" autofocus></span> </form> </div> </div> <div id=u1> <a href=http://news.baidu.com name=tj_trnews class=mnav>新闻</a> <a href=https://www.hao123.com name=tj_trhao123 class=mnav>hao123</a> <a href=http://map.baidu.com name=tj_trmap class=mnav>地图</a> <a href=http://v.baidu.com name=tj_trvideo class=mnav>视频</a> <a href=http://tieba.baidu.com name=tj_trtieba class=mnav>贴吧</a> <noscript> <a href=http://www.baidu.com/bdorz/login.gif?login&amp;tpl=mn&amp;u=http%3A%2F%2Fwww.baidu.com%2f%3fbdorz_come%3d1 name=tj_login class=lb>登录</a> </noscript> <script>document.write('<a href="http://www.baidu.com/bdorz/login.gif?login&tpl=mn&u='+ encodeURIComponent(window.location.href+ (window.location.search === "" ? "?" : "&")+ "bdorz_come=1")+ '" name="tj_login" class="lb">登录</a>');
  68.                 </script> <a href=//www.baidu.com/more/ name=tj_briicon class=bri style="display: block;">更多产品</a> </div> </div> </div> <div id=ftCon> <div id=ftConw> <p id=lh> <a href=http://home.baidu.com>关于百度</a> <a href=http://ir.baidu.com>About Baidu</a> </p> <p id=cp>&copy;2017&nbsp;Baidu&nbsp;<a href=http://www.baidu.com/duty/>使用百度前必读</a>&nbsp; <a href=http://jianyi.baidu.com/ class=cp-feedback>意见反馈</a>&nbsp;京ICP证030173号&nbsp; <img src=//www.baidu.com/img/gs.gif> </p> </div> </div> </div> </body> </html>
  69. 10:29:16.352000 [0-0] * Connection #0 to host www.baidu.com left intact
复制代码





微信扫一扫,阅读更方便^_^

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

快速回复 返回列表 搜索 官方QQ群
×

秒后自动关闭

小黑屋|手机版|Archiver|华硕网络产品技术交流平台 ( 苏ICP备16010857号-1 )苏公网安备 32050502000499号

GMT+8, 2025-5-5 16:11 , Processed in 0.421317 second(s), 36 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表