Which Squid functions depend on RSA and elliptic-curve keys today
If you run Squid as a forward proxy, an intercepting proxy or a TLS terminator, you need a record of which of its functions use public-key cryptography. As of 2026-12-03, the TLS listener, ssl-bump interception, cache_peer TLS and generated certificates all depend on RSA or ECDH/ECDSA keys, and the exact algorithms available depend on whether Squid was built against OpenSSL or GnuTLS. No Squid v7 documentation page or 7.8 release note checked lists a post-quantum algorithm, so you should treat every one of these dependencies as classical public-key cryptography today.
The key points for your record: the http_port listener takes a certificate through tls-cert=, with the private key in tls-key= or in the same file, and tls-dh= can name an ECDH curve. In interception mode, generate-host-certificates signs certificates for bumped CONNECT destinations with the CA you configure, and sslproxy_cert_sign_hash sets the hash, with sha256 as the default. cache_peer controls TLS to parent proxies through tls-min-version, sslcert, sslkey and tls-default-ca. For the CA itself, the SslBumpExplicit example generates an RSA 2048-bit key, which you should check against your own policy.
Squid is GPL software governed by the Squid Software Foundation, a Colorado non-profit that holds its copyright and licensing authority. The Foundation says it does not write code or provide user support, so questions about algorithm availability in your build go to your OpenSSL or GnuTLS vendor and your own configuration review. Confirm with your distribution which library version your build links against, because the cipher and hash lists depend on it.
This page covers only where public keys are used. For an inventory of protocols and certificates across your deployment, see the sibling page on where Squid uses cryptography. For upgrade options, see the page on what a post-quantum upgrade of Squid involves. For whether Squid supports post-quantum algorithms and for published roadmap or vendor notices, see the pages on support status and the Squid roadmap.
Which Squid functions use public keys, by version and configuration
This table lists each Squid function that uses public-key cryptography, the component it touches, and what the checked v7 documentation says about key sizes and curves. Where a row says the documentation gives no default, confirm the value in your own build and OpenSSL or GnuTLS library. Source pages were checked on 2026-12-03.
| Function | Public-key component | What the v7 documentation says |
|---|---|---|
| http_port TLS listener | RSA or EC certificate and private key via tls-cert= and tls-key= | tls-cert= takes a PEM X.509 certificate for the ServerHello. If tls-key= is omitted, the tls-cert= file must hold both. No key size is given in the entry. |
| tls-dh and ECDH curve selection | Ephemeral DH parameters or an ECDH curve set with tls-dh=[curve:]file | A curve prefix selects ephemeral ECDH, and SINGLE_ECDH_USE takes its curve from tls-dh. Curves can be listed with openssl ecparam -list_curves. No default curve is stated. |
| ssl_bump interception | Server and client certificates for bumped connections | Bump actions present a mimicked certificate to the client. Rules are checked at SslBump1, SslBump2 and SslBump3, with splice as the default action. Requires a build with --with-openssl. |
| generate-host-certificates | Generated server certificates signed by the configured CA | Enabled by default when ssl-bump is used. dynamic_cert_mem_cache_size defaults to 4MB. The entry gives no key type or size for generated certificates. |
| sslproxy_cert_sign_hash | Hash used to sign generated certificates | Valid names depend on the OpenSSL library and usually include sha1, sha256, sha512 and md5. Versions supporting the option default to sha256. |
| cache_peer TLS options | Client certificate and key (sslcert, sslkey) and CA trust for parent proxies | tls-min-version defaults to 1.0. tls-default-ca defaults to ON. The page names no default key size or curve for these options. |
| CA generation in SslBumpExplicit example | RSA 2048-bit CA key from the wiki example | The example runs openssl req -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509. The GnuTLS certtool commands on the same page give no key size. |
| Available algorithms and ciphers | Set by the OpenSSL or GnuTLS library Squid is built with | The pages checked give no Squid-specific algorithm list. Confirm the options in your own library build, since cipher= in http_port gives no default list. |
Which Squid components put RSA or elliptic-curve keys in the handshake
Squid uses public-key cryptography in several places: its own listener, the interception path, and its connections to upstream peers. Each of these places has a different key and a different job, so each needs a separate check in your inventory. The Squid pages checked do not name a specific algorithm list, and the available algorithms depend on whether Squid is built with OpenSSL or GnuTLS.
TLS listener and its private key
The tls-cert= file is a PEM X.509 certificate sent in the ServerHello, and the tls-key= file holds the private key that matches it. If tls-key= is omitted, Squid assumes the tls-cert= file holds both. The certificate's public key authenticates Squid to clients, so the signature and key exchange on this listener depend on the key type in that file. Check the key type and size of the certificate you deploy, and confirm which algorithms your OpenSSL or GnuTLS build negotiates.
Ephemeral DH and ECDH via tls-dh
The tls-dh=[curve:]file option on http_port names a file of DH parameters for ephemeral DH exchanges, or an elliptic curve prefix for ephemeral ECDH. When SINGLE_ECDH_USE is set, the curve comes from tls-dh. These key exchanges protect session keys rather than authenticate identity, so they are separate from the listener certificate. Confirm which curve or DH group is configured, and list the curves your build supports with openssl ecparam -list_curves.
ssl-bump server and client sides
When Squid bumps a connection, it connects to the server and presents a mimicked certificate to the client, so it acts as a TLS endpoint on both sides. The client-facing certificate is signed by Squid's CA, and the server-facing connection uses the server's own public key for verification. The SslPeekAndSplice wiki notes that unsupported TLS extensions can make reliable bumping impossible, and that its resumption handling is limited. Test bumped traffic with your target client and server versions before you rely on it.
SslPeekAndSplice wikiGenerated certificate signing
With generate-host-certificates enabled, Squid creates a certificate for each destination of a bumped CONNECT request and signs it with the configured CA. The sslproxy_cert_sign_hash option sets the hash for this signature, and the valid names depend on the OpenSSL library. By default, Squids that support the option use sha256. The public key in each generated certificate is an RSA or elliptic-curve key, and the Squid pages checked do not name its size or type. Confirm this in your own build.
CA key used for interception
The CA certificate and its private key sign every certificate Squid generates for interception. Anyone with access to this key can issue certificates that clients trust, so it is the most sensitive key in an interception setup. The SslBumpExplicit wiki example uses an RSA 2048-bit key with a 365-day validity, but that is an example command and not a supported default. Record the key type and size of your own CA, and decide how you will rotate it.
SslBumpExplicit wikicache_peer TLS with client certificate and key
The cache_peer directive can connect to a parent proxy over TLS using the tls option. The sslcert and sslkey options supply a client certificate and its private key, so Squid authenticates itself to the parent with that key. The tls-min-version option defaults to 1.0, and tls-default-ca defaults to ON. Check both values in your configuration, because the parent's key and the protocol version it accepts determine what this connection protects.
How the public-key dependencies differ by deployment mode
In a forward proxy without interception, clients send CONNECT requests and Squid tunnels the encrypted traffic without decrypting it. Squid itself does not terminate the client's TLS session, so the public-key work happens between the client and the origin server, and Squid's own TLS role is limited to any upstream connections you configure. The functions that apply are the CONNECT tunnel handling and, if you set tls options on a cache_peer, the outbound TLS handshake to a parent. The build needs no special flag for tunneling alone, but the outbound TLS path depends on the OpenSSL or GnuTLS library Squid is built with.
- Tunnel handling: CONNECT traffic passes through undecoded, so no certificate is presented by Squid to the client.
- Outbound TLS: Only
cache_peerortls_outgoing_optionssettings create a TLS session from Squid, and those depend on the library the build uses. - Build flags: Confirm the TLS library and version with
squid -von your build, since the flags depend on the library, not the feature. - Key exchange settings: The v7 documentation gives no directive for choosing key exchange groups on the
http_portlistener, so confirm what your build negotiates.
Check whether any upstream TLS settings exist in your configuration, because if you have none, Squid's public-key dependency in this mode is narrow.
An intercepting proxy with ssl_bump decrypts client traffic, so Squid takes on heavy public-key work in two places: it presents a server certificate to the client and it opens its own TLS session to the origin. Squid generates those certificates dynamically for each destination, which means the signing key and certificate helper matter as much as the listener. The v7 documentation says ssl_bump requires a build with --with-openssl, and the certificate helper requires --enable-ssl-crtd.
- Build flags:
--with-opensslforssl_bump, and--enable-ssl-crtdfor the certificate helper that generates per-destination certificates. - Certificate generation:
generate-host-certificatesis on by default withssl-bump, and the CA key and certificate you configure sign each one. - Signature hash:
sslproxy_cert_sign_hashdefaults to sha256 on supporting builds, and valid names depend on the OpenSSL library. - Actions and fallbacks: The
spliceaction avoids decryption entirely, and the wiki notes that peeking or staring at the server certificate can prevent later bumping, so the action sequence changes which keys are used. - CA key example: The SslBumpExplicit wiki example uses an RSA 2048-bit CA key with a 365-day validity, which is illustrative and not a recommendation.
For a federal contract citing CNSA 2.0, the customer may ask which algorithms sign the generated certificates and which key sizes the CA uses, a question you should answer from your own build and key files. CNSA 2.0 is an NSA advisory for national security systems and does not bind a commercial organization, but a customer may reference it in a contract.
A TLS listener on http_port lets Squid terminate TLS for clients that connect directly, using a certificate and private key you supply. In this mode the server certificate and its key sit on the proxy, so the proxy performs the public-key handshake for every session. The v7 documentation says tls-cert= holds the PEM certificate for the ServerHello and tls-key= holds the matching private key, and if tls-key= is omitted the tls-cert= file must contain both.
- Certificate and key:
tls-cert=andtls-key=onhttp_portdefine the identity the proxy presents to clients. - Cipher list:
cipher=takes a colon separated list, and the entry gives no default list, so you must read your build's defaults. - Ephemeral keys:
tls-dh=takes DH parameters, optionally prefixed by a curve for ECDH, andopenssl ecparam -list_curveslists curves your OpenSSL offers. - Trusted CAs:
tls-default-cadefaults to OFF on a listener, so system trusted CAs are not used unless you enable them.
Ask the customer's contract team whether a CNSA 2.0 reference expects particular algorithms for these certificates and key exchange, and record the answer from your build's test results.
When Squid forwards traffic to a parent proxy, the cache_peer directive controls the TLS session from Squid to that parent. Squid is the TLS client here, so it checks the parent's certificate and may present its own client certificate and key. The v7 documentation lists tls, tls-min-version, tls-options, sslcipher, sslcert, sslkey, tls-cafile, sslcapath, sslcrlfile, sslflags and tls-default-ca for this purpose, with tls-min-version defaulting to 1.0 and tls-default-ca defaulting to ON.
- Parent verification:
tls-cafile,sslcapathandsslcrlfiledecide which parent certificates Squid trusts and whether revocation is checked. - Client identity:
sslcertandsslkeypresent Squid's own certificate to the parent when the parent requires mutual TLS. - Minimum version:
tls-min-versiondefaults to 1.0, so set it explicitly if you need a higher floor. - Trusted system CAs:
tls-default-cadefaults to ON forcache_peer, which differs from the listener default.
A federal customer citing CNSA 2.0 may ask for the certificate and key types on the parent link, and you should confirm those from your parent's configuration rather than assume them.
Where the public keys sit in a Squid intercepting request
The flow starts when a client opens a CONNECT tunnel to Squid on an ssl-bump listener. Squid evaluates ssl_bump rules at SslBump1, SslBump2 and SslBump3, and at bump it presents a host certificate generated by generate-host-certificates and signed with the configured CA key. Squid then opens a server-side handshake, where the upstream certificate is checked against the trust store, and where tls-default-ca (default OFF on http_port, ON on cache_peer) controls whether system CAs are used. Check which CA key and trust settings apply at each leg in your build.
The public-key hand-offs in a Squid ssl-bump request, from client to origin or parent.
What to check first when inventorying Squid's public-key use
This sequence builds a short, evidence-based inventory of where Squid's build and configuration rely on RSA and elliptic-curve keys. Each step records one artifact, so the result can be checked against the Squid version and library actually in use.
Record the Squid version and TLS library
Run squid -v on the host and record the version string, which should name the build options and the OpenSSL or GnuTLS library it was compiled against. Confirm the library and its version with the package manager or the build log, since the set of available hashes and ciphers depends on that library. The step is closed when the version, the TLS library and its version are written down together in the inventory record. Note whether the build includes --with-openssl and --enable-ssl-crtd, because ssl_bump and the certificate helper need those options.
List every listening TLS port and parent
Search squid.conf and any included files for http_port lines that carry tls-cert= or tls-key=, and for cache_peer lines that carry the tls option. Record each listener's address, its certificate file and whether a separate tls-key= file is present, since omitting tls-key= means the certificate file must contain both. Record each cache_peer with its tls-min-version and any sslcert or sslkey files. The step is closed when every TLS listener and every TLS parent appears in the inventory with its key file paths.
Review ssl_bump rules and certificate generation
List every ssl_bump rule in the order it appears, noting the action (splice, bump, peek, stare or terminate) and the step (SslBump1, SslBump2 or SslBump3) at which it applies. Check whether generate-host-certificates is set on an http_port that is used for interception, since it is enabled by default when ssl-bump is used. Record the sslcrtd_program line and its cache size if one is set. The step is closed when each rule and each interception listener is recorded with its action and whether certificates are generated dynamically. Note that peek or stare at the server certificate can prevent later bumping, so record those rules separately.
Identify the CA key and its algorithm
Locate the CA certificate and key files referenced by the http_port and sslproxy settings. Read the algorithm and key size from the file itself using openssl x509 -noout -text and openssl pkey -noout -text, or the equivalent GnuTLS tools, and do not rely on the file name. Record the public-key algorithm (RSA or elliptic-curve), the key size or curve, the signature hash and the validity period. The step is closed when the CA entry lists these values from the file contents and states which file each value came from.
Check signing hashes, ciphers and DH settings
Check whether sslproxy_cert_sign_hash is set, and if it is not, record that the default applies, which the vendor documentation gives as sha256 for supporting builds. Look for explicit cipher= values on http_port, sslcipher on cache_peer and tls-options, and for tls-dh= settings that may name a curve for ephemeral ECDH. If no cipher list is set, record that the library default applies and confirm the default with the library version in step one. The step is closed when each of these settings is recorded as explicitly set with its value, or as using the default, with the library named.
Confirm the inventory against primary sources
Compare the recorded version and settings against the Squid v7 configuration documentation for http_port, cache_peer, ssl_bump and sslproxy_cert_sign_hash, and against the release notes for the version in use. Check the result against the supplied sources: the configuration references, the SslBumpExplicit and SslPeekAndSplice wiki pages, and the Squid Versions page. Record the date of each check. The step is closed when every entry in the inventory has been compared with a named source, and any setting the documentation does not cover is marked for confirmation with the vendor or in the running configuration.
What Squid has not published about public-key algorithms
The checked Squid v7 pages, the 7.8 release notes and the Versions page describe how TLS is configured but do not name post-quantum algorithms, key exchange groups or a roadmap. Each card below is a gap that engineers should put to the Squid project or to the distribution or vendor that packages their build.
No post-quantum algorithm list
The checked Squid v7 http_port, tls_outgoing_options, cache_peer, ssl_bump and SslPeekAndSplice pages do not mention ML-KEM, ML-DSA, SLH-DSA or X25519MLKEM768, and they name no Squid-specific algorithm list. Ask the Squid project which post-quantum algorithms, if any, a Squid build can negotiate, and ask your packager which OpenSSL or GnuTLS version it links against, since the available algorithms depend on that library.
http_port docsNo key exchange group directive
The http_port page documents tls-dh=[curve:]file for ephemeral ECDH, but no directive appears there for choosing TLS key exchange groups. Ask the Squid project whether a future directive will select key exchange groups, and check with your packager whether the configured curve in tls-dh can carry any hybrid group, since the page does not say.
http_port docsNo default key size for generated certificates
The SslBumpExplicit wiki example generates a CA with an RSA 2048-bit key and a 365-day validity, but it gives no default key size for dynamically generated host certificates and gives no size at all in its GnuTLS commands. Confirm the key type and size your build produces, for example by inspecting a generated certificate, and ask the Squid project what default key size the certificate helper uses.
SslBumpExplicit wikiNo default cipher list
The v7 http_port documentation says cipher= takes a colon separated list but gives no default list in the entry. Ask the Squid project which cipher suites a listener negotiates when cipher= is omitted, and check the running configuration with your packager, because the answer depends on the TLS library the build uses.
http_port docsNo roadmap statement
The Squid Versions page and the Squid 7.8 release notes checked on 2026-12-03 publish no post-quantum roadmap and no FIPS or CNSA 2.0 statement. The 7.8 notes list only the removal of sslflags=DELAYED_AUTH and a build change, with no cryptographic algorithm changes. Ask the Squid project whether it has a post-quantum plan and when it will publish one, and ask the vendor or distribution that packages your build for its own statement.
Squid 7.8 releaseNot a cryptographic module
A 2005 squid-users reply by Henrik Nordstrom states that Squid is not a cryptographic module and that OpenSSL is the module Squid uses for SSL. That reply predates current guidance, so it does not describe the present build. Ask your packager which cryptographic module and version your build uses, and treat that library, not Squid itself, as the place where post-quantum support would have to be checked.
2005 squid-users replyWhat can go wrong when Squid's TLS settings are assumed rather than checked
The most common mistake in reviewing Squid's public-key exposure is assuming that the settings in squid.conf fully determine which algorithms are used. They do not. Squid runs on top of the OpenSSL or GnuTLS library it is built with, so the algorithms, hashes and ciphers it can negotiate change when the library changes, even when no Squid release occurs. The Squid v7 pages checked say that available hashes and ciphers depend on the library, and they name no Squid-specific algorithm list. Confirm the library and version that your build links against, and record that version alongside your Squid version in your inventory.
Several Squid features also depend on details that the configuration does not show. The cipher= option on http_port takes a colon separated list and gives no default list in its entry, so a listener without an explicit cipher value falls back to whatever the library negotiates. The same applies to key exchange: the tls-dh= option is the only place the documentation links ephemeral ECDH curve choice to configuration, and the http_port page does not describe a Squid directive for selecting key exchange groups. For generated interception certificates, sslproxy_cert_sign_hash defaults to sha256 in Squids that support it, but no default key size appears in the facts, so the key size of generated certificates must be read from your own build or output and not assumed.
Bumping adds its own limits. The SslPeekAndSplice wiki page says that peeking or staring at the server certificate usually prevents later bumping or splicing, so a rule that peeks too early can silently change the outcome of an ssl_bump policy. The same page says Squid's mimicked Client Hello covers only SSL v3 and TLS versions, that unsupported TLS extensions can make reliable bumping impossible, and that session resumption handling is limited. It does not mention TLS 1.3 specifically. Before you treat a bumped connection as a verified inspection point, test the client and server pairs you actually run, and check the resulting connections in your logs rather than relying on the rule text alone.
Questions engineers and vendor-risk reviewers ask about Squid's public keys
Is Squid quantum safe?
The Squid pages checked do not support that claim. The Squid v7 configuration documentation for http_port, tls_outgoing_options, cache_peer and ssl_bump, and the SslPeekAndSplice wiki page, do not name ML-KEM, ML-DSA, SLH-DSA, X25519MLKEM768 or any other 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 elliptic-curve ECDH or ECDSA. Which algorithms are actually available depends on the OpenSSL or GnuTLS library Squid is built with, so confirm the library and its post-quantum support in your own build.
Which Squid version does this answer apply to?
The findings apply to the Squid v7 configuration documentation and the Squid 7.8 release notes, both checked on 2026-12-03. The 7.8 release notes list the removal of the unimplemented sslflags=DELAYED_AUTH option and a build change to OpenSSL pkg-config handling, and they describe no cryptographic algorithm changes. Squid's cache_peer, http_port and ssl_bump directives can behave differently in older releases, so check the documentation for the exact version you run. Your build's TLS library version determines which key exchange groups and signature algorithms are available, so record both Squid and OpenSSL or GnuTLS versions in your inventory.
Does using a stronger CA key cost extra in Squid itself?
The Squid documentation checked does not state a cost for using a stronger CA key, and it does not say the software charges for key size. The SslBumpExplicit example generates a CA with an RSA 2048-bit key and a 365-day validity. Other key sizes or algorithms are a matter of the certificate generation command and the library Squid is built with. The real cost drivers are the time to regenerate and redistribute the CA certificate to every client that trusts it, the work to test interception with clients and upstreams, and any change to the helper cache. Ask your platform team and your vendor or distributor for the effort involved before you plan any change.
What breaks if clients cannot negotiate a new key exchange group?
The Squid v7 http_port page documents tls-dh with an optional curve prefix for ephemeral ECDH, and it says the curve list can be checked with openssl ecparam -list_curves. It does not document a Squid directive that chooses TLS key exchange groups for the listener, and the cipher= option has no default list in the entry. If a client and Squid share no group, the handshake fails, so clients that cannot offer a group Squid is configured to accept will be refused. Test the groups each client and each upstream support before changing any setting, and treat the effect on interception and parent-proxy traffic as something to confirm in a test environment.
What should I ask the Squid project and my packager?
Ask whether a post-quantum or hybrid key exchange is planned in any Squid release, and whether a directive will expose it. The Squid Foundation says it does not write code or provide user support itself, and the project is developed by volunteers, so direct questions about the roadmap to the project's community channels. The Squid Versions page and the 7.8 release notes, checked on 2026-12-03, publish no post-quantum roadmap and no FIPS or CNSA 2.0 statement. Ask your packager which OpenSSL or GnuTLS version your build links against, whether it is compiled with --with-openssl or --enable-ssl-crtd, and whether they will ship a post-quantum-capable library. Get the answers in writing and date them.
Can my team inventory Squid's public keys without outside help?
Yes, most of the inventory can be done in-house, using the configuration files, build flags and library versions on your Squid hosts. Start by listing every tls-cert=, tls-key=, sslcert=, sslkey=, tls-cafile= and tls-dh= setting, every ssl_bump rule, and the generated-certificate helper configuration. Then record the TLS library version and the signing hash from sslproxy_cert_sign_hash, which by default is sha256 in supporting releases. Outside help is worth considering when you need to test interception across many clients and upstreams, or when you must match the inventory to an audit control. DeployOpen plans and implements these reviews as fixed-scope engagements, and produces evidence for your assessors, but it does not issue audit reports or certifications.
How DeployOpen works on this
DeployOpen works through Squid's public-key use in four steps: scoping the written engagement, building and testing the inventory against your own Squid configuration, handing over documented evidence, and offering ongoing support as a retainer. Each step is agreed in writing before work starts, so your security and platform teams know exactly what is covered.
How we scope
- Agree in writing which Squid listeners, cache_peer links and ssl_bump rules are in scope for review.
- Confirm the exact Squid version and whether it is built with OpenSSL or GnuTLS, since available algorithms depend on the library.
- Confirm whether TLS interception (ssl-bump and generated certificates) is in use, because it changes which keys and certificates to inventory.
How we build
- Map each tls-cert, tls-key, sslcert and sslkey setting to the certificate and key type it uses.
- Review cipher, tls-dh and tls-options settings against the library documentation and record what each setting actually negotiates.
- Test the generated-certificate signing hash and CA key used for bumped connections, and record their configured values.
How we hand over
- Deliver a dated inventory listing each public-key dependency by Squid function, configuration key and file location.
- Document which settings in your environment were checked, the Squid version tested and any items that need vendor confirmation.
- Provide a findings report with the steps needed to upgrade or reconfigure, and a retest once changes are made.
How we support
- Ongoing support and upgrades can be arranged as a retainer after the initial inventory is handed over.
- Re-run the inventory after each Squid release, since release notes and documentation can change the available settings.
- Keep the evidence current for your compliance and vendor-risk reviewers as the Squid project publishes new guidance.

