Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: ssl handshake failed #8183

Closed
luofanyuguai opened this issue Oct 27, 2022 · 4 comments
Closed

bug: ssl handshake failed #8183

luofanyuguai opened this issue Oct 27, 2022 · 4 comments

Comments

@luofanyuguai
Copy link

Current Behavior

Call url 'https://{domain}' but get ssl error

Expected Behavior

Got a normal http server response

Error Logs

2022/10/26 08:28:11 [error] 53#53: 99045 [lua] radixtree_sni.lua:146: match_and_set(): failed to find any SSL certificate by SNI: xx.example.com, context: ssl_certificate_by_lua, client: 172.21.43.126, server: 0.0.0.0:9443

Steps to Reproduce

  1. Uploaded cert and key through by apisis-dashboard
  2. Add a /etc/hosts domain record with target to Apisix server IP
  3. Curl a url with 'https' scheme
  4. Failed to call

Environment

Start docker compose by using example in https://github.com/apache/apisix-docker/example

@luofanyuguai
Copy link
Author

In Apisix the ssl config path on etcd is ssl_certificates, err = core.config.new("/ssls",
But I found that In Apisix-dashboard the path was HubKeySsl HubKey = "ssl"

@tokers
Copy link
Contributor

tokers commented Oct 27, 2022

@bzp2010 is it due to the compability between apisix 3.0 and dashboard?

@guitu168
Copy link
Contributor

guitu168 commented Oct 27, 2022

Dashboard is still using the 2.x version of the API. please refer to: #8173

@luofanyuguai
Copy link
Author

the image is apache/apisix:2.99.0-debian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants