You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/08 13:27:57 UTC

[GitHub] [apisix] kongjun01 opened a new issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

kongjun01 opened a new issue #3783:
URL: https://github.com/apache/apisix/issues/3783


   ### Issue description
   
   我有个upsream的scheme设置为http,然后这个路由也配置了SSL证书,用https直接访问能够正常返回,但是upsream的scheme设置为https(强制跳转https),访问一直报502 Bad Gateway
   
   路由配置:
   {
       "uri": "/test/*",
   	"hosts": ["nutsta.cn"],
       "plugins": {
       },
       "upstream": {
           "service_name": "TEST-SERVICE",
           "type": "roundrobin",
           "discovery_type": "eureka",
   	"scheme": "https"
       }
   }
   
   
   错误日志:
   2021/03/08 21:16:09 [error] 65945#681239: *2862 SSL_do_handshake() failed (SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number), client: 127.0.0.1, server: , request: "GET /test/test HTTP/1.1", subrequest: "/proxy_mirror", host: "nutsta.cn:9080"
   
   ### Environment
   本地
   
   * apisix version (cmd: `apisix version`): 2.4
   * OS (cmd: `uname -a`): Darwin MacBook-Pro.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
   * OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): nginx version: openresty/1.19.3.1
   * etcd version, if have (cmd: run `curl http://127.0.0.1:9090/v1/server_info` to get the info from server-info API):
   {
       "id": "f7444900-a7af-4b20-9f83-365947024ee8",
       "version": "2.4",
       "boot_time": 1615209248,
       "etcd_version": "3.4.0",
       "up_time": 572,
       "last_report_time": 1615209788,
       "hostname": "sMacBook-Pro.local"
   }
   
   * apisix-dashboard version, if have:
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 removed a comment on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 removed a comment on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793261336


   > > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   > 
   > What's your upstream's TLS protocol version?
   
   ssl_protocols TLSv1.2 TLSv1.3;


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 removed a comment on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 removed a comment on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793266493


   > > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   > 
   > What's your upstream's TLS protocol version?
   
   上游服务是tomcat,没有任何的ssl配置。可能不是上游的问题,因为upsream的scheme设置为http,用https访问正常。


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793603428


   > > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   > 
   > What's your upstream's TLS protocol version?
   
   TLSv1 TLSv1.1 TLSv1.2  ?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 closed issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 closed issue #3783:
URL: https://github.com/apache/apisix/issues/3783


   


-- 
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-794691669


   Will you provide a network capture file including the handshake with the upstream?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793266493


   > > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   > 
   > What's your upstream's TLS protocol version?
   
   上游服务是tomcat,没有任何的ssl配置。可能不是上游的问题,因为upsream的scheme设置为http,用https访问正常。


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793224435


   > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   
   What's your upstream's TLS protocol version?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-809844807


   问题解决了,强制跳转https用的是重定向,不是重写


-- 
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:
users@infra.apache.org



[GitHub] [apisix] kongjun01 commented on issue #3783: request help: SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Posted by GitBox <gi...@apache.org>.
kongjun01 commented on issue #3783:
URL: https://github.com/apache/apisix/issues/3783#issuecomment-793261336


   > > SSL: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
   > 
   > What's your upstream's TLS protocol version?
   
   ssl_protocols TLSv1.2 TLSv1.3;


----------------------------------------------------------------
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:
users@infra.apache.org