【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

相关推荐
嘉琪coder2 小时前
我做了一个 Chrome 扩展,把 YouTube 播放列表批量变成 AI 可读的本地 Markdown
chrome·开源·浏览器
web打印社区9 小时前
浏览器静默打印?先别装第三个库了
前端·vue.js·chrome·electron·pdf
IT菜鸟程11 小时前
Ubuntu 下 apt 版 Nginx 升级为源码编译版本完整操作指南(1.24.0 → 1.30.4 实战)
linux·nginx·ubuntu
sbjdhjd14 小时前
从 7 字符文件名拼接到二维数组取值:PHP 无参函数限制下的受控靶场复盘 | (7字符绕过)
网络·nginx·安全·网络安全·云计算·php·apache
NGINX开源社区16 小时前
NGINX Gateway Fabric 2.6:F5 WAF for NGINX 集成 Gateway API
nginx·gateway·fabric
晴天1619 小时前
Chrome 控制台(DevTools)竟是用 HTML 写的?-Day41
前端·chrome·html
小白羊丨1 天前
HTTP/2 如何缓解 HTTP/1.1 阻塞;长连接对 Nginx 有什么影响?
网络协议·nginx·http
handler011 天前
【Linux】ELF、链接与动态库,程序装载全解析
linux·运维·服务器·chrome·c·elf·文件
bosins1 天前
Windows IIS 配置本地HTTPS 全流程指南:自签名证书 + 端口绑定 + 避坑详解
powershell·openssl
可乐鸡翅yeah_2 天前
多浏览器 HLS 兼容性差异排查,Chrome、Firefox、Safari 表现不一致定位
chrome·ffmpeg·音视频·firefox·safari·m3u8