Where Squid uses cryptography: TLS interception and upstreams

Squid uses cryptography for client and upstream TLS, interception certificates, and management and helper paths, and the facts show which of these rely on public-key algorithms and where each is configured.

On this page

Where does Squid use cryptography, and why inventory it now?

If you are building a cryptographic inventory for Squid, start with five areas: listening TLS on http_port, TLS interception and certificate generation for bumped connections, upstream TLS to parent proxies configured through cache_peer, the cryptographic library selected at build time, and the management paths that reach the proxy. Squid's documentation explains how to configure each of these, but it does not give you an inventory of what your deployment uses, so you will need to build that list yourself. An entry matters because it records which key, certificate, cipher setting and library version protects each path, which is the input any later upgrade decision depends on. The platform or proxy owner should maintain the inventory, and the security lead should review and sign off on it, since the owner knows the configuration and the lead answers for the risk. Squid is an open source project with no vendor support contract, so there is no vendor you can contact for a per-deployment answer. The Squid Foundation holds the copyright and governs the project, and the volunteer developers do not provide user support. Confirm your build's library with your own build configuration, since Squid uses OpenSSL or GnuTLS depending on how it was built.

For the listening side, record each http_port with tls-cert= and tls-key=. If tls-key= is omitted, the file named by tls-cert= is expected to contain both the certificate and the private key, so note which layout each listener uses. Record any tls-dh= file and any curve named in it, since those set ephemeral key exchange parameters, and record the cipher= list that you set, because the documentation gives no default list for that entry. For interception, record whether ssl-bump is in use, the ssl_bump rules and their actions, the CA certificate and key that sign generated server certificates, the sslproxy_cert_sign_hash value in effect, and whether generate-host-certificates is enabled. Note that the sslcrtd_program helper must be built with --enable-ssl-crtd. For upstream TLS, record each cache_peer with the tls option, its tls-min-version, sslcert and sslkey, and its CA files, since the default tls-min-version is 1.0 and should be checked against your policy.

Which Squid areas use cryptography, and what each one protects

This table lists each Squid area that uses cryptography in TLS interception and upstream connections, with what it protects, the algorithm family involved, whether it depends on public-key algorithms, and where it is configured. Read it as an inventory starting point: the algorithm families come from the library Squid is built with, so confirm the exact algorithms in your own build. Management interface, firmware and update signing are not documented by the sources checked.

AreaWhat it protectsAlgorithm familyDepends on public-key algorithmsWhere configured
Listening TLSClient connections to the Squid listener, using the server certificate and private keySet by the OpenSSL or GnuTLS build; cipher list is set by cipher=Yeshttp_port tls-cert= and tls-key=
TLS interceptionClient connections to bumped destinations, through certificates Squid generates for themSet by the OpenSSL build; generated certificates chain to the configured CAYeshttp_port generate-host-certificates; ssl_bump rules
CA certificate and keyTrust anchor that signs dynamically generated certificates for intercepted sitesPublic-key certificate and private key of the CA (RSA in the sample given; confirm your key type)Yeshttp_port tls-cert= and tls-key= on the intercepting listener
Generated certificate signingSignatures on certificates Squid creates for intercepted destinationsHash set by sslproxy_cert_sign_hash; default sha256 where supportedYessslproxy_cert_sign_hash
Upstream TLS to parent proxiesConnections from Squid to a parent proxy, including its certificate checksSet by the OpenSSL or GnuTLS build; minimum version defaults to 1.0Yescache_peer tls, tls-min-version, sslcert, sslkey, tls-cafile
Certificate helperCreation of generated certificates through an external helper and its cache directoryGenerated certificates use the same library as the other TLS functions aboveYessslcrtd_program (requires a build with --enable-ssl-crtd)
Build-time crypto libraryAll TLS, certificate and signature functions, through the OpenSSL or GnuTLS library chosen at buildOpenSSL or GnuTLS; available algorithms depend on the library versionYesBuild configuration (--with-openssl or GnuTLS option); confirm with your build
Management interfaceNot documented by the sources checkedNot applicableNot applicableConfirm with the vendor or project
Firmware and update signingNot documented by the sources checkedNot applicableNot applicableConfirm with the vendor or project

Which TLS settings choose Squid's protocols and algorithms

Squid's TLS behavior is set in several places: the listening port, the upstream peer, the outgoing TLS options and the ssl_bump rules that intercept traffic. Each setting governs a different connection, and the cipher and curve choices ultimately come from the OpenSSL or GnuTLS library Squid is built with.

Listening TLS and cipher settings

On an http_port with TLS, tls-cert= supplies the certificate sent in the ServerHello, and tls-key= supplies its private key. The cipher= option takes a colon-separated list of ciphers, but the v7 entry gives no default list, so the active set is whatever the build and library allow. Check this setting on every listener that accepts client TLS, because each port can have its own list. Ask the operator to record the exact cipher= string in use, not only the certificate file.

http_port docs

Ephemeral DH and ECDH parameters

The tls-dh= option on http_port names a file of DH parameters for ephemeral DH exchanges. An optional curve prefix, as in tls-dh=curve:file, selects ephemeral ECDH instead. When SINGLE_ECDH_USE is in effect, its curve comes from tls-dh. Curves available on a system can be listed with openssl ecparam -list_curves. Confirm which curve, or which DH file, is set on each listener, since this decides the key exchange group for client connections to Squid.

http_port docs

Minimum TLS version on parent peers

On cache_peer, the tls option turns on TLS toward a parent proxy, and tls-min-version sets the lowest protocol version Squid will accept from that peer. The documented default is 1.0, so a peer without an explicit setting can negotiate old versions. Review each cache_peer line that uses TLS, and record the minimum version in your inventory rather than relying on the default. The setting controls only that peer link, not client-facing listeners.

cache_peer docs

Upstream ciphers and TLS options

For TLS links from Squid to origin servers or parents, sslcipher and tls-options set the cipher list and protocol options. On cache_peer, the same controls appear as sslcipher and tls-options, alongside sslcert, sslkey and CA file settings. These options are passed through to the TLS library, so the accepted algorithms depend on the OpenSSL or GnuTLS build. Ask for the configured values on every upstream connection that uses client certificates or custom ciphers.

cache_peer docs

Interception through ssl_bump

With ssl_bump, Squid can splice a connection as an undecoded tunnel, bump it into a man-in-the-middle TLS session, or peek and stare at the server certificate. The v7 default action is splice, and rules are evaluated at SslBump1, SslBump2 and SslBump3. The SslPeekAndSplice notes say the mimicked Client Hello covers only SSL v3 and TLS versions, that unsupported TLS extensions can make reliable bumping impossible, and that session resumption is limited. Whether a given modern client can be bumped depends on those limits, so test the actual client population.

SslPeekAndSplice notes

Where Squid certificates and keys are stored and who rotates them

The certificate Squid presents to clients on a TLS listener is set with the tls-cert= option of http_port. It is a PEM X.509 certificate, stored as a file on the Squid host. The private key is set with tls-key=, which takes the PEM private key that matches the preceding tls-cert=. If tls-key= is omitted, Squid assumes the tls-cert= file contains both the certificate and the key. Issuance is outside Squid: an administrator obtains the certificate from an internal or public certificate authority and places the files on disk. Rotation is therefore a file replacement followed by a Squid reconfiguration, and the operator who controls the host and the CA relationship controls it.

  • Storage: PEM files on the filesystem, referenced by path in squid.conf.
  • Issuance: Obtained from an outside CA. Squid does not generate this certificate.
  • Key location: Either a separate tls-key= file or a combined file named by tls-cert=.
  • Rotation: Whoever holds the CA relationship and host access replaces the files and reloads Squid.
  • Key size: Set by whatever key the CA issued, so record it from the certificate itself with an inspection command.

Check which files your http_port entries point to, whether a combined file is used, and who has write access to those paths.

How administrators and tools reach Squid, and what protects each path

The sources checked for this page do not document a Squid management API, a web administration interface or a cloud management channel. For the inventory, record administrator access as whatever your organization configured. In most deployments that means SSH to the host, changes delivered through configuration management, and the permissions on the certificate helper's cache directory, which the SslBumpExplicit wiki sets up with security_file_certgen -c and the -s /var/lib/ssl_db path in the sslcrtd_program example. Confirm each of these in your own environment: who holds the SSH keys or credentials, how the configuration files reach the host, and which local accounts can read or write the certificate database. Those answers are yours to document, not something the Squid pages settle.

The only network cryptographic paths the sources document for this page are the two that the Squid configuration itself defines. The first is the cache_peer entry with the tls option, which controls TLS to a parent proxy, including tls-min-version (default 1.0), sslcert, sslkey, tls-cafile and tls-default-ca (default ON). The second is ssl_bump, which decides, per connection and at each of the SslBump1, SslBump2 and SslBump3 steps, whether traffic is spliced, bumped, peeked, stared at or terminated. Bumping requires a build with --with-openssl. Record both as the documented crypto paths, and list the tls-min-version value you have actually set on each parent, since the default is the lowest version listed.

Any other administrative or clustering path has to be confirmed by the operator. That includes management connections added by a monitoring agent, a sidecar, a load balancer in front of Squid, or cluster or peer replication that your build or scripts may add. Check your own running configuration and network captures for such traffic, and note the protocol, endpoints and key or certificate source for anything you find. Where you cannot establish what protects a path, record it as unconfirmed rather than assuming it is protected.

How Squid releases and builds reach you, and what the vendor controls

Squid reaches you as volunteer-maintained source code under the GNU General Public License, compiled with options you choose. The cards below separate what the project publishes, what you control at build time, and what the project does not provide, so you can record who owns each step of your TLS path.

Source releases and GPL licensing

The Squid Software Foundation, a Colorado non-profit incorporated in 2011, holds the copyright and licensing authority for Squid and governs the project. Squid is developed by volunteers and released under the GNU General Public License. The Foundation states that it does not write code or provide user support itself. For your inventory, this means no vendor is contractually responsible for a Squid fix or support commitment, so any support or patch timeline must come from your own team or a third party you engage. Record that ownership gap explicitly.

Squid Foundation page

What the 7.8 release notes change

The Squid 7.8 release notes list two changes that matter for TLS: removal of the unimplemented sslflags=DELAYED_AUTH option from squid.conf, and a build change that applies OpenSSL pkg-config settings before checking headers. The notes describe no cryptographic algorithm changes in this release. If your configuration still sets sslflags=DELAYED_AUTH, plan to remove it during your 7.8 upgrade review, and confirm the OpenSSL detection in your own build logs rather than assuming the change is inert for your environment.

Squid 7.8 release notes

Build-time options that select TLS support

Two build options decide which TLS functions exist in your binary. --with-openssl links Squid against OpenSSL, and the ssl_bump documentation states that SSL bumping requires a build with this option. --enable-ssl-crtd enables the certificate helper that generates certificates for intercepted destinations. Squid's pages say that the hashes and ciphers available depend on the OpenSSL or GnuTLS library you build against. Record the OpenSSL version and these flags for each binary you run, because they determine both your cryptographic library and your interception capability.

ssl_bump docs

No firmware or signed binary channel

The project sources describe Squid as source code distributed under the GPL, with no firmware image or signed binary update channel from the Foundation. Binaries you run come from your operating system packages, a container image you build, or a third-party distribution. Verifying a binary therefore depends on the signing and provenance practices of whoever packaged it, not on the Squid project. Confirm the package source, its signature checks and its update cadence before you treat any Squid binary as your post-quantum baseline.

Squid Foundation page

What to record for each Squid cryptographic item in your inventory

This table lists the fields to capture for each place Squid uses cryptography, from TLS listeners and interception to upstream peers. Read each row as a question your inventory must answer, and fill cells from your own configuration and build, not from defaults. Where the researched sources do not state a value, the cell says what to confirm.

FieldWhat to recordWhere to confirm
Product and versionSquid and the exact release, plus build flags such as --with-openssl and --enable-ssl-crtdSquid version output and your build configuration
Owner and locationTeam that owns the instance, and the host or site where it runsYour asset register and change records
Listener or peerThe http_port listener or cache_peer address that terminates or initiates TLSsquid.conf http_port and cache_peer entries
Protocol and TLS versionsProtocols enabled and the tls-min-version value, which defaults to 1.0 on cache_peercache_peer and tls_outgoing_options settings in your config
Cipher and key exchange settingsThe cipher= list on http_port, sslcipher on cache_peer, and any tls-dh or curve valueYour config file; the http_port page gives no default cipher list
Algorithm and key sizeFor the example CA, RSA 2048 from the SslBumpExplicit wiki; other keys as configured or not statedYour CA generation records and the key files in use
Certificate issuer and expiryIssuer and validity period of the listener certificate, CA and any upstream certificateCertificate files, openssl x509 output and your PKI records
Generated per-host certificatesKey size and issuer are set by your operator CA and the certificate helper, not by Squid defaults in the sourcesYour sslcrtd_program setup and the CA that signs generated certificates
Signature hashThe sslproxy_cert_sign_hash value, which defaults to sha256 where supportedYour sslproxy_cert_sign_hash directive, if set
Configurable or library-fixedWhether the item can be changed in Squid settings or is set by the linked OpenSSL or GnuTLS libraryYour OpenSSL or GnuTLS version and the Squid build options
Confidentiality lifetimeHow long the protected traffic or data must stay confidential, which sets how urgent each item isYour data classification and retention policy

Which Squid items depend on RSA and elliptic-curve keys

Squid's TLS functions depend on public-key algorithms. Handshakes, certificate verification and the signing of generated certificates use RSA and elliptic-curve algorithms such as ECDH and ECDSA. That places three areas in scope: the TLS listeners Squid accepts connections on, the interception path where Squid generates certificates for bumped CONNECT requests, and the upstream TLS connections Squid opens to origin servers and parent proxies. Each needs its own inventory entry, because the keys and settings differ between them.

Symmetric ciphers and hash functions sit alongside these public-key operations but do not, by themselves, depend on public keys. Symmetric ciphers protect the bulk of the data after the handshake, and hashes are used in signatures and integrity checks. When you inventory Squid, record the public-key dependencies separately from the symmetric and hash settings, since only the former determine exposure to a future change in public-key algorithms. The Squid v7 sslproxy_cert_sign_hash documentation shows that the signing hash depends on the OpenSSL library in use, so confirm the value in your own configuration.

For detail on which specific Squid functions rely on RSA and elliptic-curve keys, see the sibling page on that topic. The sources checked for this page do not name a Squid-specific list of algorithms. The Squid documentation states that available hashes and ciphers depend on the OpenSSL or GnuTLS library the build uses, so the authoritative list for your deployment is the one your build reports. Confirm the library and version in your build output before relying on any algorithm inventory.

How to collect Squid's cryptographic details from your own deployment

This sequence builds an inventory of the TLS listeners, interception settings, certificates, keys and build options that your Squid deployment actually uses. The output is a dated, versioned record you can check against the facts on this page and send to the vendor or project for any value the configuration does not show.

  1. Export the running configuration

    Someone with access to the Squid host copies the active squid.conf, along with any files it includes, into a version-controlled or evidence folder. Record the Squid version reported by the service and the date you collected it, because settings and defaults can differ between releases. The step is done when you have a complete, dated copy and can state which file was the live one.

  2. Search for TLS and interception directives

    Search the exported configuration for http_port with tls-cert, tls-key, cipher, tls-dh and generate-host-certificates, for ssl_bump rules, sslproxy_cert_sign_hash, sslcrtd_program, and for cache_peer lines that use tls, tls-min-version, tls-options, sslcipher, sslcert, sslkey or tls-cafile. Note each match with its line number and the listener or peer it belongs to. The step is done when every match is in your inventory, including any that appear to be defaults you did not set.

  3. Confirm the build options and library

    Run squid -v, or read the build log if the binary was compiled locally, and note whether --with-openssl and --enable-ssl-crtd appear in the configure options. Record the OpenSSL or GnuTLS version named in the output. Squid's options for ssl_bump and its certificate helper depend on these build flags, so a missing flag means the directive will not work as written. The step is done when the flags and library version are written down beside the Squid version.

  4. List certificate, key and helper database files

    List the files referenced by tls-cert, tls-key, sslcert and sslkey, the CA material used for interception, and the security_file_certgen database directory named in sslcrtd_program. Record each path, its size, owner and last modification date. Do not copy private keys into shared documents. The step is done when every referenced file is accounted for and any missing file is flagged.

  5. Inspect each certificate with openssl

    For each certificate file, run openssl x509 with the -noout, -issuer, -subject, -enddate and -text options, and note the signature algorithm and public key type and size shown in the text output. Record the issuer and expiry date for each. For the interception CA, note whether it was self-signed or issued by another CA. The step is done when every certificate has an issuer, subject, expiry date and key details in your record.

  6. Record the key exchange and cipher settings

    Note each cipher, tls-dh, tls-min-version and tls-options value you set, and mark those you left at their defaults. The Squid documentation does not give a default cipher list in the http_port entry, so the effective list depends on your build and OpenSSL configuration. Confirm the effective list from your own build rather than assuming a value. The step is done when every setting is marked as explicitly set or as a default you still need to confirm.

  7. Send open questions to the vendor

    Collect every value your configuration does not show, such as the default cipher list for your build, the default key exchange groups, and the certificate helper behaviour, and send them to the Squid project or your distribution's maintainers in writing. Ask them to confirm answers for your exact version and build flags. The step is done when each open item has a question, a named recipient and a date sent, and the answers are added to the record.

Questions about Squid's cryptography inventory

Is Squid quantum safe?

The sources checked contain no post-quantum support or statement for Squid, so nothing here supports calling it quantum safe. The v7 http_port, ssl_bump, cache_peer and SslPeekAndSplice pages, and the Squid 7.8 release notes, do not mention ML-KEM, ML-DSA, SLH-DSA, X25519MLKEM768 or post-quantum cryptography, as of 2026-12-03. Squid's TLS handshakes, certificate verification and generated-certificate signatures use public-key algorithms such as RSA and ECDH or ECDSA, and the available hashes and ciphers depend on the OpenSSL or GnuTLS library Squid is built with. Treat the inventory as the starting point, and confirm the library and version in your own build.

Which Squid version should I record in my inventory?

Record the version your deployment reports in squid -v, not the version on a download page or in a package name. That output also shows the build options, including whether --with-openssl or GnuTLS, --enable-ssl-crtd and other TLS features are compiled in. Those options decide which ssl_bump actions, certificate generation and cipher behavior are available to you. Record the TLS library version separately, since the cryptographic code comes from OpenSSL or GnuTLS, and record any distribution package revision that rebuilt Squid. Re-run the check after every upgrade, because a new release can change defaults and build behavior.

Does a Squid cryptography inventory cost extra?

Squid is free, open source software under the GNU General Public License, so the software itself has no license fee. The cost of an inventory comes from the staff time to map TLS listeners, ssl_bump rules, certificate paths, cache_peer links and build libraries, and from any tooling you use to scan configurations. Costs rise with the number of Squid instances, the number of ssl_bump rules and upstream parents, and how many teams own them. If you hire a provider, ask for a written scope that lists which files, hosts and build records are covered, and whether the work includes a written report. No price is supplied here, so compare quotes against that scope rather than an hourly rate alone.

What do the sources say about Squid and FIPS?

In a 2005 squid-users reply, Henrik Nordstrom wrote that FIPS certification does not apply to Squid, because Squid is not a cryptographic module, and that OpenSSL is the cryptographic module Squid uses for SSL. That reply is old and predates current releases, so it does not describe the status of any recent build. The Squid Versions page and the Squid 7.8 release notes, checked on 2026-12-03, publish no FIPS or CNSA 2.0 statement. For a FIPS question, ask which OpenSSL or GnuTLS build and validation status your environment uses, and whether your auditor accepts the library as the module boundary.

What should I ask the Squid project about post-quantum support?

The Squid Software Foundation holds the copyright and governs the project, but the Foundation says it does not write code or provide user support itself, and development is done by volunteers. That means there is no vendor support contract to send a questionnaire to. Ask the project, through its public mailing lists or issue tracker, whether a post-quantum key exchange or signature option is planned, which TLS library versions it will require, and whether any transition or deprecation notice is expected. Record the date and the answer, because the sources checked on 2026-12-03 contain no such roadmap. If you need a binding commitment, you will need to get it from a commercial distributor or a company that supports your build, not from the project.

Can my own team do the Squid inventory, or do we need help?

Many teams can do a first inventory themselves if they have someone who reads the Squid configuration and knows where certificates and keys live. Start with the http_port entries that set tls-cert= and tls-key=, the ssl_bump rules, the sslproxy_cert_sign_hash and sslcrtd_program settings, and the cache_peer lines that use tls or sslcert. Then record the library and build options from squid -v. Outside help is most useful when the configuration is large, when several Squid instances share a CA, or when the findings must match an audit scope. Ask any helper for a written scope and a deliverable that lists each file and setting checked.

Where in my Squid setup should I look for public-key cryptography first?

Start with the places where Squid holds or presents keys and certificates: the tls-cert= and tls-key= settings on each listener, the CA that signs generated certificates for TLS interception, and the sslcert and sslkey settings for connections to parent proxies. The ssl_bump rules decide which connections are intercepted, spliced or bumped, so list those rules next. The sslproxy_cert_sign_hash setting names the signing hash, and Squid's documentation says that by default supporting builds use sha256. The tls-dh setting names the file of DH parameters, and the Squid pages checked do not list a Squid-specific algorithm list. Note what each one points to, and record the file locations and owners.

Does the TLS library version change what Squid can use?

Yes. The Squid pages say the available hashes and ciphers depend on the OpenSSL or GnuTLS library Squid is built with, so the same configuration can behave differently on two builds. The cipher= option takes a colon-separated list, and its entry in the v7 documentation gives no default list, so the effective ciphers come from the library. The tls-min-version setting on cache_peer defaults to 1.0 in the v7 documentation, which you should check against your policy. Record the library name and version for each deployment, and retest your settings after any library update, since the set of options a build offers is set by that library.

How DeployOpen helps build a cryptographic inventory that covers Squid

DeployOpen approaches Squid's cryptography as a scoped inventory of its TLS listeners, interception rules, generated certificates and upstream parent connections. We work inside your own infrastructure and document each setting against the Squid version and the TLS library it was built with.

How we scope

  • Confirm the Squid version, build options and whether OpenSSL or GnuTLS is the TLS library in use.
  • List every http_port listener, ssl_bump rule and cache_peer link that carries TLS in your deployment.
  • Agree the written scope in advance, covering which configuration files, certificates and helpers are included.

How we build

  • Record each tls-cert, tls-key, tls-dh, cipher and tls-min-version setting with its file location and value.
  • Trace the CA used for generated certificates, its key size and sslproxy_cert_sign_hash, and where it is stored.
  • Map each upstream cache_peer TLS connection, its CA bundle and client certificate, against the library that performs the handshake.

How we hand over

  • Deliver a dated inventory that states which settings were read from the configuration and which were confirmed on the running host.
  • Flag every point where Squid's documentation defers to OpenSSL or GnuTLS, so the reader knows which library to check.
  • Note where the Squid project has published no post-quantum statement as of the review date, so the gap is recorded rather than assumed.

How we support

  • Ongoing support and a retainer can keep the inventory current as Squid releases and configuration changes arrive.
  • Re-run the inventory after each Squid upgrade to catch changes to TLS defaults or helper behavior.
  • Ask the vendor or project to confirm any algorithm or roadmap question before it is recorded as settled in your evidence file.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.