-2

I want to know if with Squid I can use as a proxy with basic auth, to use with cURL for example:

curl -vvv "https://ifconfig.me" -x user:password@localhost:8000

Where localhost is the Squid instance.

Is it possible with Squid and HTTPS websites?

Rodrigo
  • 45
  • 2
  • 8
  • 1
    yes and end-user question are off-topic – djdomi Nov 01 '21 at 12:14
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Nov 14 '21 at 11:10

1 Answers1

0

Solved with

htpasswd -bc /etc/squid/passwords user password

squid.conf

auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated

http_port 3128
Rodrigo
  • 45
  • 2
  • 8