debian 从源代码安装 squid3
apt-get install libssl-dev ssl-cert dpkg-dev devscripts build-essential fakeroot
apt-get source squid3
apt-get build-dep squid3
cd squid3-3.4.8/
vi debian/rules
# 在 DEB_CONFIGURE_EXTRA_FLAGS 配置中添加
# 注意 with-open-ssl 的值为实际 openssl.cnf 所在路径
–enable-ssl \
–with-open-ssl=/usr/lib/ssl/openssl.cnf \
# 编译 squid
./configure
debuild -us -uc -b
service squid3 stop
dpkg -i squid3_3.4.8-6+deb8u1_amd64.deb
openssl req -new -keyout /etc/squid3/key.pem -nodes -x509 -days 365 -out /etc/squid3/cert.pem
vi /etc/squid3/squid.conf
插入如下一行:
https_port 25 cert=/ssl/ssl.crt key=/ssl/ssl.private.key
service squid3 start
apt-mark hold squid3