SSL Error - wrong version number (HTTPS to HTTP)

喜你入骨 提交于 2021-01-29 21:30:22

问题


I receive an error when i try to "redirect" and https request to http by a stunnel server.

construction:

flask server: serve https which includes an button with a https request to another server (stunnel4).

stunnel: receives the request and redirect it to a local (http) server.

the stunnel server failes by following error:

Mär 27 19:27:20 raspberrypi stunnel[1400]: LOG5[1744]: Service [https] accepted connection from <external_IP>:51874
Mär 27 19:27:20 raspberrypi stunnel[1400]: LOG5[1744]: s_connect: connected <local_IP>:7777
Mär 27 19:27:20 raspberrypi stunnel[1400]: LOG5[1744]: Service [https] connected remote server from <local_IP>:45444
Mär 27 19:27:20 raspberrypi stunnel[1400]: LOG3[1744]: SSL_connect: 1408F10B: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

is it possible that this error caused by my manually (not officially certificatied) created SSL certificates?

flask server --> uses an manual created cert and key file. stunnel4 uses --> uses an manual created cert and key file (but different to flasks SSL files)

if you know any other methods to "redirect" the https to http, please comment.

来源:https://stackoverflow.com/questions/60899222/ssl-error-wrong-version-number-https-to-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!