hizzd opened a new issue #3371:
URL: https://github.com/apache/apisix/issues/3371


   ### Issue description
   When I enable `auto-tls` in etcd and disable `etcd.tls.verify` in apisix. 
   It will display error message when starting it: `got malformed version 
message: "" from etcd`.
   after checking the code, I found that it was because the `curl` command did 
not add the `-k` parameter to skip tls verify.
   after I added the `-k` parameter to these three positions, it work.
   (I noticed that these three parts in the master branch were modified to use 
`socket.http` instead of curl. but it doesn't seem to add a parameter to 
disable tls verify)
   
https://github.com/apache/apisix/blob/e8dcf3793ca40b30047406ac51a79a500356f67b/apisix/cli/etcd.lua#L136
   
https://github.com/apache/apisix/blob/e8dcf3793ca40b30047406ac51a79a500356f67b/apisix/cli/etcd.lua#L173-L175
   
https://github.com/apache/apisix/blob/e8dcf3793ca40b30047406ac51a79a500356f67b/apisix/cli/etcd.lua#L201-L203
   
   
   
   ### Environment
   
   * apisix version: [docker] apache/apisix:2.2-alpine
   * OS: [docker] apache/apisix:2.2-alpine
   * OpenResty / Nginx version: [docker] apache/apisix:2.2-alpine
   * etcd enabled auto-tls.
   * apisix disable etcd.tls.verify.


----------------------------------------------------------------
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.

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


Reply via email to