How to Enable SSL Squid

Written by chris hoffman Google
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Enable SSL Squid
(Polka Dot RF/Polka Dot/Getty Images)

Squid is an open-source proxy and Web-caching server. Squid sits between a computer and the Internet, forwarding traffic, and can be used in a variety of modes. If Squid is being used as a proxy with no accelerated caching, Squid passes encrypted SSL traffic directly between the computer and Web server without understanding it. If you enable SSL support on a Squid server being used as a Web accelerator, Squid can understand the encrypted SSL traffic and cache and serve data locally to computers that request it, speeding up requests for content after the first one. For example, if one computer downloads an image over SSL, Squid can save that image on the local Squid server and the next time a computer asks for that image, Squid can serve the image directly to the computer without downloading it again from the Internet.

Skill level:
Challenging

Other People Are Reading

Instructions

  1. 1

    Download a version of Squid built with SSL support; not all versions of Squid contain SSL support. If you're compiling Squid yourself, type "./configure --enable-ssl" instead of "./configure" before typing "make install".

  2. 2

    Open the "/etc/squid/squid.conf" configuration file on Linux and other Unix-like operating systems or the "C:\squid\etc\squid.conf" configuration file on Windows in your favourite text editor.

  3. 3

    Type "https_port 443 cert=/usr/ssl/cert.pem key=/usr/ssl/key.pem defaultsite=website.com" onto a new line in the squid.conf file, replacing "443" with a desired port for SSL traffic, "/user/ssl/cert.pem" with the path to your SSL certificate, "/usr/ssl/key.pem" with the path to your SSL private key, and "website.com" with the name of your website.

  4. 4

    Save the squid.conf configuration file in the text editor.

  5. 5

    Restart the Squid server by typing "sudo /etc/init.d/squid restart" on Ubuntu or the similar appropriate command for your operating system into a terminal and pressing "Enter."

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.