Ubuntu-OpenSSL:错误:1408F10B:SSL例程:ssl3\u获取\u记录:版本号错误

Ubuntu-OpenSSL:错误:1408F10B:SSL例程:ssl3\u获取\u记录:版本号错误,openssl,Openssl,我有2个域名;主域和api域,位于应用程序和数据库服务器的2个Ubuntu VPS上。我在SSL上发送内部请求api域时遇到问题 短错误;OpenSSL:错误:1408F10B:SSL例程:ssl3\u get\u记录:版本号错误 细节 在应用服务器上,Varnish侦听80端口并将请求重定向到Nginx 8080 Nginx侦听443端口 我只使用certbot安装了LetsEncrypt SSL 我使用Cloudflare作为代理 我在/etc/hosts上添加了一条规则来发送和获

我有2个域名;主域和api域,位于应用程序和数据库服务器的2个Ubuntu VPS上。我在SSL上发送内部请求api域时遇到问题

短错误;OpenSSL:错误:1408F10B:SSL例程:ssl3\u get\u记录:版本号错误

细节

  • 在应用服务器上,Varnish侦听80端口并将请求重定向到Nginx 8080

  • Nginx侦听443端口

  • 我只使用certbot安装了LetsEncrypt SSL

  • 我使用Cloudflare作为代理

  • 我在/etc/hosts上添加了一条规则来发送和获取内部请求-应答,因为;外部请求迟于Cloudflare代理。 规则

    127.0.0.1 myapidomain.com

在此调查中,如果我在SSL上发送请求myapidomain.com,我将面临: OpenSSL:错误:1408F10B:SSL例程:ssl3\u get\u记录:版本号错误 无法建立SSL连接错误。 见:

如果我在没有SSL的情况下向api域发送请求,它就是连接。 或者,如果我删除了hosts规则,它将再次连接

Varnish检查请求域并重定向到nginx 8080:

backend panel {
    .host = "127.0.0.1";
    .port = "8080";
}
Nginx配置:

server {
    listen 8080 default_server;
    listen [::]:8080 default_server;

    root /var/www/html/domain.com/public;
    index  index.php index.html index.htm;
    server_name  localhost api.mydomain.com;
...
    ssl_certificate /etc/letsencrypt/live/mydom.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mydom.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
}
server {
    listen 443;

    root /var/www/html/domain.com/public;
    index  index.php index.html index.htm;
    server_name  localhost api.mydomain.com;
...
    ssl_certificate /etc/letsencrypt/live/mydom.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/mydom.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
}
你的想法是什么? 多谢各位