<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi!,<br></div><div><br></div><div>I've recently been trying to update my version of squid from 4.0.20 to something more modern (4.13), but I'm having issues with my TLS enabled proxy not returning certificates correctly (it seems). Specifically, when I try and run the following curl (url replaced to protect the innocent):<br></div><div> </div><div>curl -vvI --proxy <a href="https://vvnncqvnjkclsuu3ctvdp5k4ck72-uupfpbnf.mirageid.com:5000">https://test.example.com:5000</a> <a href="https://google.com">https://google.com</a><br></div><div></div><div><br></div><div>I get the following result:<br></div><div><br></div><div>* Trying 167.99.53.100:5000...<br></div><div>* Connected to test.example.com port 5000<br></div><div>* ALPN, offering http/1.1<br></div><div>* successfully set certificate verify locations:<br></div><div>* CAfile: /etc/ssl/certs/ca-certificates.crt<br></div><div>* CApath: none<br></div><div>* TLSv1.3 (OUT), TLS handshake, Client hello (1):<br></div><div>* TLSv1.3 (IN), TLS handshake, Server hello (2):<br></div><div>* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):<br></div><div>* TLSv1.3 (IN), TLS handshake, Certificate (11):<br></div><div>* TLSv1.3 (OUT), TLS alert, unknown CA (560):<br></div><div>* SSL certificate problem: unable to get local issuer certificate<br></div><div>* Closing connection 0<br></div><div>curl: (60) SSL certificate problem: unable to get local issuer certificate<br></div><div><br></div><div>This is different then what I get for my old 4.0.20 server:<br></div><div><br></div><div>* Connected to test.example.com port 3128 (#0)<br></div><div>* successfully set certificate verify locations:<br></div><div>* CAfile: /etc/ssl/certs/ca-certificates.crt<br></div><div>* CApath: none<br></div><div>* TLSv1.3 (OUT), TLS handshake, Client hello (1):<br></div><div>* TLSv1.3 (IN), TLS handshake, Server hello (2):<br></div><div>* TLSv1.2 (IN), TLS handshake, Certificate (11):<br></div><div>* TLSv1.2 (IN), TLS handshake, Server key exchange (12):<br></div><div>* TLSv1.2 (IN), TLS handshake, Server finished (14):<br></div><div>* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):<br></div><div>* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):<br></div><div>* TLSv1.2 (OUT), TLS handshake, Finished (20):<br></div><div>* TLSv1.2 (IN), TLS handshake, Finished (20):<br></div><div>* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384<br></div><div>* Proxy certificate:<br></div><div>* subject: CN=*.example.com<br></div><div>* start date: Apr 5 21:02:06 2021 GMT<br></div><div>* expire date: May 7 21:02:06 2022 GMT<br></div><div>* issuer: C=BE; O=GlobalSign nv-sa; CN=AlphaSSL CA - SHA256 - G2<br></div><div>* SSL certificate verify ok.<br></div><div></div><div><br></div><div>But the config and certs are exactly the same! I've pasted the config, output of squid -v, and cert information here: <a href="https://gist.github.com/dansteen/c28343fd025c713bcfba8368ce2b728b">https://gist.github.com/dansteen/c28343fd025c713bcfba8368ce2b728b</a><br></div><div><br></div><div>One difference between the two that I noticed is that the old version is compiled with --with-openssl and --enable-ssl and -enable-ssl-crtd, and the new version only has --with-gnutls. Would that be the issue? I appreciate the help!<br></div><div><br></div><div>Thanks!<br></div><div id="sig110441488"><div id="sig115675648" class="signature"><div class="signature">Dan Steen<br></div><div class="signature"><br></div></div></div><div><br></div></body></html>