【Chrome】ERR_SSL_PROTOCOL_ERROR问题

文章目录


前言

Edge升级最新版后,有的https访问不了,报如下错误

发现新版Chrome以及Chromium内核访问nginx ssl时报错,顺着这个思路接着查看到大佬的结论:服务器nginx使用的openssl版本过低,验证过后开始升级


一、下载

其它的都能在官网下载到,这里就不挨个贴了,贴一个我整合好的压缩包,觉得挨个下麻烦的可以拿走用。
点我去下载新版

  • 旧版
    nginx:1.0.9
    openssl:1.0.1h
    pcre:8.37
    zlib:1.2.8
    module:nginx_upstream_check_module-master
  • 新版
    nginx:1.25.3
    openssl:1.1.1w
    pcre:8.45
    zlib:1.3
    module:nginx_upstream_check_module0.0.4

二、使用步骤

将上述包放到同一个文件夹分别解压,解压命令

shell 复制代码
tar -zxvf nginx-1.25.3.tar.gz
tar -zxvf openssl-1.1.1w.tar.gz
tar -zxvf pcre-8.45.tar.gz
tar -zxvf zlib-1.3.tar.gz
tar -zxvf nginx_upstream_check_module-0.4.0.tar.gz

之后进入nginx文件夹

shell 复制代码
cd nginx-1.25.3

开始编译、安装

shell 复制代码
./configure --prefix=/usr/local/nginx-1.25.3 \
            --with-openssl=../openssl-1.1.1w \
            --with-pcre=../pcre-8.45 \
            --with-zlib=../zlib-1.3 \
            --with-http_ssl_module \
            --without-http_memcached_module \
            --with-http_stub_status_module \
            --with-http_gzip_static_module \
            --add-module=../nginx_upstream_check_module-0.4.0/
make
sudo make install

步骤里没有将nginx加到系统环境中全局使用,需要自行添加,使用时需要对应目录或者绝对路径使用

shell 复制代码
cd /usr/local/nginx-1.25.3
cd /sbin
# 启动
./nginx
# 检查配置
./nginx -t
# 重新加载
./nginx -s reload
# 结束进程
./nginx -s stop

至此结束


总结

chromium禁用了SHA1的握手加密方法,我们nginx内openssl版本旧,依然在使用,所以出现问题

我们总是站在巨人的肩膀上,贴下大佬的参考链接
Issue 1488571: ERR_SSL_PROTOCOL_ERROR
4898836: Disable SHA1 in TLS server handshakes by default
OpenSSL 1.0.2* doesn't preserve digests for SNI

相关推荐
arvin_xiaoting2 小时前
OpenClaw学习总结_I_核心架构_8:SessionPruning详解
前端·chrome·学习·系统架构·ai agent·openclaw·sessionpruning
追风少年王大爷丶8 小时前
nginx 配置无域名访问拒绝
运维·服务器·nginx
kyriewen118 小时前
异步编程:从“回调地狱”到“async/await”的救赎之路
开发语言·前端·javascript·chrome·typescript·ecmascript·html5
ljh57464911913 小时前
Linux find命令
linux·运维·chrome
额12914 小时前
UBUNTU中nginx反向代理(负载均衡)
nginx·ubuntu·负载均衡
zhensherlock16 小时前
Protocol Launcher 系列:Microsoft Edge 浏览器唤起的优雅方案
javascript·chrome·microsoft·typescript·edge·github·edge浏览器
Gary jie16 小时前
OpenClaw启动日志详细分析
前端·chrome
秦渝兴17 小时前
用 Docker Compose 一键部署高可用集群(MySQL + Tomcat + Nginx)
运维·mysql·nginx·docker·容器·tomcat
L16247617 小时前
Nginx+Keepalived 高可用集群实战笔记
运维·笔记·nginx
**蓝桉**18 小时前
Keepalived+Nginx+Tomcat 高可用负载均衡
nginx·tomcat·负载均衡