« Installing Squid to handle both 80 and 443 | Main | Lighttpd, virtual hosts, and wildcard domains »
Adding SSL support to Squid package on Ubuntu
By Matt | May 26, 2009
Ubuntu doesn’t package OpenSSL support with Squid in their distributions.
But you don’t have to quite roll your own and compile from source either! You can add it to the package your self.
Verify it doesn’t have ssl support:
/usr/sbin/squid3 -v
Modify /etc/apt/sources.list adding these lines:
deb-src http://us.archive.ubuntu.com/ubuntu jaunty main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu jaunty-updates main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted universe multiverse
Ok, get some prerequisites:
apt-get install libssl-dev
apt-get install devscripts build-essential fakeroot
apt-get source squid3
apt-get build-dep squid3
apt-get install libcppunit-dev
apt-get install libsasl2-dev
apt-get install cdbs
You should have a squid3-3.0.STABLE8 directory now.
cd squid3-3.0.STABLE8/debian
vi rules
Where you see the other “enables” under DEB_CONFIGURE_EXTRA_FLAGS add:
–enable-ssl
cd..
debuild -us -uc
cd /usr/src
dpkg -i squid3_3.0.STABLE8-3_amd64.deb squid3-common_3.0.STABLE8-3_all.deb squid3-cgi_3.0.STABLE8-3_amd64.deb squidclient_3.0.STABLE8-3_amd64.deb
Congratulations, you should now have Squid with SSL support — installed from an almost stock Ubuntu package.
The above directions blended elements I found at:
http://www.howtoforge.com/how-to-rebuild-the-squid-2.6-debian-package-with-support-for-x-forwarded-for-headers
http://ubuntuforums.org/archive/index.php/t-1049456.html
https://www.linuxquestions.org/questions/debian-26/-enable-icap-client-at-squid3-640035/
Topics: Uncategorized | 1 Comment »
One Response to “Adding SSL support to Squid package on Ubuntu”
Comments
You must be logged in to post a comment.
May 26th, 2009 at 4:16 pm
[...] Failed Keyboard Logging… | Main | Adding SSL support to Squid package on Ubuntu [...]