首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >鱿鱼!致命:没有为HTTPS_port配置有效的签名证书

鱿鱼!致命:没有为HTTPS_port配置有效的签名证书
EN

Server Fault用户
提问于 2021-08-04 11:38:43
回答 1查看 4.2K关注 0票数 1

我已经在Ubuntu20.04上和Squid4.13做了大约一个星期的斗争。

我最近(也是最后一个)的问题是:

致命:没有为HTTPS_port配置有效的签名证书

我的台词是这样说的:

代码语言:javascript
复制
https_port 0.0.0.0:3128 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB cert=/usr/local/squid/etc/rootCA.crt key=/usr/local/squid/etc/rootCA.key options=SINGLE_DH_USE,SINGLE_ECDH_USE tls-dh=/usr/local/squid/etc/dhparam.pem

我到处都找过了(至少感觉是这样的),甚至连鱿鱼自己的wiki (https://wiki.squid-cache.org/ConfigExamples/Intercept/SslBumpExplicit)都是vierd?因为在开始时,他们展示了如何处理.pem文件,但是在文档的末尾,他们展示了示例行,他们谈论的是.crt和.key,以及一个完全不同的.pem文件。

我唯一改变的就是把比特提高到4096

所以,我又迷路了!有人知道他们在说什么吗?什么是正确的格式,如何做它和...Ahh!帮助?

编辑:这是我使用的“标准”配置:

代码语言:javascript
复制
acl localnet src 0.0.0.1-0.255.255.255  # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8             # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10          # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16         # RFC 3927 link-local (directly plugged) machines
acl localnet src 172.16.0.0/12          # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16         # RFC 1918 local private network (LAN)
acl localnet src fc00::/7               # RFC 4193 local private network range
acl localnet src fe80::/10              # RFC 4291 link-local (directly plugged) machines
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
include /etc/squid/conf.d/*
http_access allow localhost
http_access allow all

include /etc/squid/conf.d/*
https_port 0.0.0.0:3128 intercept ssl-bump generate-host-certificates=on dynamic_cert_mem_cache_size=4MB tls-cert=/usr/local/squid/etc/Root-ca-cert.pem  cert=/usr/local/squid/etc/rootCA.crt key=/usr/local/squid/etc/rootCA.key options=SINGLE_DH_USE,SINGLE_ECDH_USE tls-dh=/usr/local/squid/etc/dhparam.pem

/etc/squid/conf.d .d中包含的配置是一个名为debian.conf的文件:

代码语言:javascript
复制
#
# Squid configuration settings for Debian
#

# Logs are managed by logrotate on Debian
logfile_rotate 0

# For extra security Debian packages only allow
# localhost to use the proxy on new installs
#
#http_access allow localnet

应要求:

代码语言:javascript
复制
Aug  4 12:25:47 socks systemd[1]: Starting Squid Web Proxy Server...
Aug  4 12:25:52 socks squid[9474]: 2021/08/04 12:25:52| FATAL: No valid signing certificate configured for HTTPS_port 0.0.0.0:3128
Aug  4 12:25:52 socks squid: FATAL: No valid signing certificate configured for HTTPS_port 0.0.0.0:3128
Aug  4 12:25:52 socks squid[9474]: 2021/08/04 12:25:52| Squid Cache (Version 4.13): Terminated abnormally.
Aug  4 12:25:52 socks squid[9474]: CPU Usage: 5.132 seconds = 5.128 user + 0.004 sys
Aug  4 12:25:52 socks squid[9474]: Maximum Resident Size: 62224 KB
Aug  4 12:25:52 socks squid[9474]: Page faults with physical i/o: 0
Aug  4 12:25:52 socks systemd[1]: squid.service: Control process exited, code=exited, status=1/FAILURE
Aug  4 12:25:52 socks systemd[1]: squid.service: Failed with result 'exit-code'.
Aug  4 12:25:52 socks systemd[1]: Failed to start Squid Web Proxy Server.
EN

回答 1

Server Fault用户

发布于 2021-08-16 05:53:24

部分解决方案是一个ID 10 T问题,显然证书是错误的,甚至你的测试说它是好的,但创建一个新的证书,它是有效的。

后面出现的关于循环的问题是在这里识别的:https://unix.stackexchange.com/questions/664236/squid-proxy-is-eating-up-its-own-resources-and-other-issues

在这里发布了一个新的问题布局:https://unix.stackexchange.com/questions/664669/squid-caught-in-loop-cert-error

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1073504

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档