squid3 https_port 需要 --enable-ssl

squid3 https_port 需要 --enable-ssl

使用 squid3 -k parse 我看到这个:

处理:https_port 443 cert=myCA.pem
错误:'https_port' 需要 --enable-ssl

如何启用 ssl?

输出 squid3 -v

Squid 缓存:版本 3.4.8 linux 配置选项:'--build=x86_64-linux-gnu''--prefix=/usr''--includedir=${prefix}/include''--mandir=${prefix}/share/man''--infodir=${prefix}/share/info''--sysconfdir=/etc''--localstatedir=/var''--libexecdir=${prefix}/lib/squid3''--srcdir=.' '--禁用维护者模式' '--禁用依赖性跟踪' '--禁用静默规则' '--datadir=/usr/share/squid3' '--sysconfdir=/etc/squid3' '--mandir=/usr/share/man' '--启用内联' '--禁用arch-native' '--启用async-io=8' '--启用storeio=ufs,aufs,diskd,rock' '--启用removal-policies=lru,heap' '--启用延迟池' '--启用缓存摘要' '--启用icap-客户端' '--启用follow-x-forwarded-for' '--enable-auth-basic=DB,fake,getpwnam,LDAP,MSNT,MSNT-multi-domain,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB' '--enable-auth-digest=file,LDAP' '--enable-auth-negotiate=kerberos,wrapper' '--enable-auth-ntlm=fake,smb_lm' '--enable-external-acl-helpers=file_userip,kerberos_ldap_group,LDAP_group,session,SQL_session,unix_group,wbinfo_group' '--enable-url-rewrite-helpers=fake' '--enable-eui' '--enable-esi' '--enable-icmp' '--enable-zph-qos' '--enable-ecap' '--disable-translation' '--with-swapdir=/var/spool/squid3' '--with-logdir=/var/log/squid3' '--with-pidfile=/var/run/squid3.pid' '--with-filedescriptors=65536' '--with-large-files' '--with-default-user=proxy' '--enable-build-info= linux' '--enable-linux-netfilter' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'LDFLAGS=-fPIE -pie -Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'

答案1

嗯,如您的输出所示squid3 -v,您的 squid 编译选项中没有该--enable-ssl标志。所以恐怕您无法使用 SSL。请使用该--enable-ssl标志进行编译或使用其他方法,例如安全漏洞

相关内容