ShuLian1984 commented on issue #10622:
URL: https://github.com/apache/apisix/issues/10622#issuecomment-1851202191

   我也出现类似情况.由3.4升级到3.7出现的.现在已经修复了.
   
   |软件|版本|
   |:-|:-|
   |`APISIX`|3.7.0|
   |`ETCD`|3.5.0|
   |`APISIX-Dashboard`|3.0.1 (commit_hash: 397c0cb)|
   
   我的使用场景如下:
   
   通过`apisix-dashboard`导入证书,配置4层转发将`sni`为`mqtt.abc.com`的请求转到后端.
   访问时,出现报错:
   ```bash
   2023/12/11 20:34:57 [error] 2041778#2041778: *186823 stream [lua] 
radixtree_sni.lua:177: match_and_set(): failed to find any SSL certificate by 
SNI: mqtt.abc.com, context: ssl_certificate_by_lua*, client: 10.10.19.55, 
server: 0.0.0.0:20000
   ```
   修复措施: 通过api创建证书.
   
   通过`apisix-dashboard 3.0.1`版本导入证书可以复现该异常.
   
   通过`/apisix/admin/ssls`接口对比通过api和Dashboard导入的证书信息发现明显差异:
   **通过api创建的证书key部分是加密的.而Dashboard是明文的.**
   
   > 初步判断为`APISIX 3.7`和`APISIX Dashboard 3.0.1`存在版本兼容问题.
   
   以上仅供各位参考,希望对大家有所帮助.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to