Explorar o código

update:Air8000/demo/http,修复“https单向认证演示时,ca证书使用错误”的问题

zhutianhua hai 4 meses
pai
achega
09a6c20bad
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      module/Air8000/demo/http/http_app.lua

+ 1 - 3
module/Air8000/demo/http/http_app.lua

@@ -414,9 +414,7 @@ local function http_app_ca_get()
     -- 在有效期之前,baidu会更换server证书,如果server证书更换后,此处验证使用的baidu_parent_ca.crt也可能需要更换
     -- 使用电脑上的网页浏览器访问https://www.baidu.com,可以实时看到baidu的server证书以及baidu_parent_ca.crt
     -- 如果你使用的是自己的server,要替换为自己server证书对应的ca证书文件
-    -- local server_ca_cert = io.readFile("/luadb/baidu_parent_ca.crt")
-    local server_ca_cert = io.readFile("/luadb/openluat_root_ca.crt")
-
+    local server_ca_cert = io.readFile("/luadb/baidu_parent_ca.crt")
 
     -- https get请求https://www.bidu.cn/网页内容
     -- 如果请求成功,请求的数据保存到body中