hmm, thanks for both of you.. i regenerated new certificates using
Eliazer's method and now squid restarted but it is refusing connections..
i normally configure port 8080 as the proxy port in the browser, and i
am thinking there needs to be another port for ssl bumping?
now the configuration is like this:
....
# And finally deny all other access to this proxy
http_access deny all
# Squid normally listens to port 3128
#http_port 8080
##sslproxy_capath /home/zouhairy/demoCA
http_port 8080 ssl-bump cert=/etc/squid/certs/myCA.pem
generate-host-certificates=on dynamic_cert_mem_cache_size=4MB
ssl_bump peek all
ssl_bump splice all
#tls_outgoing_options options=NO_SSLv3,SINGLE_DH_USE,SINGLE_ECDH_USE
cipher=HIGH:MEDIUM:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS
# Uncomment and adjust the following to add a disk cache directory.
# Updates: chrome and acrobat
#refresh_pattern -i gvt1.com/.*\.(exe|ms[i|u|f|p]|dat|zip|psf) 43200 80%
129600 reload-into-ims
#refresh_pattern -i adobe.com/.*\.(exe|ms[i|u|f|p]|dat|zip|psf) 43200
80% 129600 reload-into-ims
range_offset_limit 200 MB
maximum_object_size 200 MB
quick_abort_min -1
cache_dir ufs /var/cache/squid 3000 16 256
# Leave coredumps in the first cache dir
coredump_dir /var/cache/squid
cache_mem 1024 MB
netdb_filename none
#
# Add any of your own refresh_pattern entries above these.
#
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
url_rewrite_extras "%>a/%>A %un %>rm bump_mode=%ssl::bump_mode
sni=\"%ssl::>sni\" referer=\"%{Referer}>h\""
url_rewrite_program /usr/local/ufdbguard/bin/ufdbgclient -m 4 -l
/var/log/squid/
url_rewrite_children 16 startup=8 idle=2 concurrency=4
#debug_options ALL,1 33,2 28,9
On 4/2/21 2:02 PM, Amos Jeffries wrote:
On 1/04/21 11:41 pm, Majed Zouhairy wrote:
to enable ssl bumping.
specifically those commands:
/usr/share/ssl/misc/CA.pl -newca
/usr/share/ssl/misc/CA.pl -newreq
/usr/share/ssl/misc/CA.pl -sign
openssl x509 -in newcert.pem -outform DER -out squidTrusted.der
sudo squid -z
asks for certificate password
then
Enter PEM pass phrase:
2021/04/01 13:17:03| Created PID file (/run/squid.pid)
zouhairy@proxy:~> 2021/04/01 13:17:03 kid1| WARNING: BCP 177
violation. Detected non-functional IPv6 loopback.
Enter PEM pass phrase:
2021/04/01 13:17:03 kid1| FATAL: No valid signing certificate
configured for HTTP_port 0.0.0.0:8080
That says there is no CA certificate found in the file configured for
that ports tls-cert= option. Squid requires a signing (CA) certificate
and its private key in order to perform SSL-Bump.
With "squid -k parse" Squid should tell you what it is loading from that
file.
squid conf:
...
http_port 8080 ssl-bump generate-host-certificates=on
dynamic_cert_mem_cache_size=4MB cert=/etc/squid/certs/newcert.pem
key=/etc/squid/certs/newkey.pem capath=/home/zouhairy/demoCA
ssl_bump peek all
ssl_bump splice all
sslproxy_cert_error allow all
Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users