Re: [squid-users] how to configure squid to check server certificate?

2020-03-19 Thread GeorgeShen
thanks Amos. - George -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users

Re: [squid-users] how to configure squid to check server certificate?

2020-03-12 Thread GeorgeShen
Understood. not altering the bytes. My question is simple: if using squid to do splicing proxy action of https sessions, is there a squid configuration to block/drop the session if the remote server's certificate is signed by a 'untrusted' CA? thanks. George -- Sent from: http://squid-web-pro

Re: [squid-users] how to configure squid to check server certificate?

2020-03-03 Thread GeorgeShen
>There should not need to be anything configured though. Rejecting >unknown root CAs is how TLS is designed to work. With splice the error >should be produced by your UA/Browser. Although the client I have has the root cert of that untrusted CA from server but getting the TLS handshaking error, it

Re: [squid-users] how to configure squid to check server certificate?

2020-03-01 Thread GeorgeShen
Sorry, I should have said 'Trusted self-signed' CA vs non-Trusted. I was in one enterprise, they use proxy server, when I went to a non-trusted CA server, I got TLS handshaking error; but it worked fine when going to a 'trusted' CA server. And I know my connection on the proxy was not a SSL-Bump.

[squid-users] how to configure squid to check server certificate?

2020-02-29 Thread GeorgeShen
Is there a way, not using ssl-bump, on squid to verify the remote server has the certificate signed by some well-known CA or self-signed? does that change if the server is running TLS 1.2 or 1.3? thanks. George -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019

Re: [squid-users] Does Squid proxy passes client/server MIME type such as application/x-protobuf?

2020-01-10 Thread GeorgeShen
Thanks Amos, Good to know the MIME types are forwarded if the payload is being relayed. What will be the expectation on the http custom headers, such as 'X-Request-ID', or 'X-Serial-Number' if they are set from client, during the proxy relay process, will those also be forwarded unchanged or is

[squid-users] Does Squid proxy passes client/server MIME type such as application/x-protobuf?

2020-01-10 Thread GeorgeShen
I would like to know in the case of proxy, can be ssl-bump, does the squid proxy passes the http MIME type to the other side of the connection? such as application/x-protobuf, application/json, text/plain, etc. What is the expectation on this for the other HTTP header information? thanks. - Georg

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-23 Thread GeorgeShen
>That is saying the "ssl-bump" flag requires "intercept" on that port >directive. > >SSL-Bump is intercepting the TLS layer. It makes no sense for a client >to explicitly open TCP connections to Squid when trying to perform TLS >with a different server elsewhere. but my proxy's purpose is to do t

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-23 Thread GeorgeShen
>No. You receive a server cert and the CA chain required to validate that >server cert. > >Stop thinking of certs as belonging to the proxy. It seems to be >confusing you. All 3 certs can be called "the proxy's certs" and yet >none of them is a "proxy cert" in TLS definitions. Amos, but those t

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-23 Thread GeorgeShen
>> actually doing "openssl s_client -proxy 192.168.1.35:3129 -connect >> -showcerts ", >> noticed two of the three certs from that display is from the proxy server >> I >> think. the first one >> is the modified host cert. maybe that's the way to get proxy server's >> certs. >> >You are using S

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-22 Thread GeorgeShen
actually doing "openssl s_client -proxy 192.168.1.35:3129 -connect -showcerts ", noticed two of the three certs from that display is from the proxy server I think. the first one is the modified host cert. maybe that's the way to get proxy server's certs. thanks. George -- Sent from: http://s

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-22 Thread GeorgeShen
>this is http port, speaking http. This is not a https port, so you can't >speak https to it. The difference between 3128 and 3129 is, when you issue >CONNECT request to 3129, squid tries to communicate using SSL as if it was >the destination server (or, whatever you configure in ssl_bump options

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-21 Thread GeorgeShen
> how is port 3129 defined in squid.conf? ssl_bump peek step1 ssl_bump stare step2 ssl_bump bump all http_port 3128 http_port 3129 ssl-bump cert=/usr/local/squid/etc/ssl_cert/myCA.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB options=SINGLE_DH_USE:SINGLE_ECDH_USE tls-dh=prime

Re: [squid-users] Is there a way on client to show proxy's certificate?

2019-12-20 Thread GeorgeShen
> The same openssl command can connect to any type of TLS server. True. But the proxy server may not run normal TLS service or listen on the port 443. The proxy with SSL-Bump is listening on the 3129 for example, I have certainly tried: openssl s_client -connect proxy-server-ip:3129 -showcert a

[squid-users] Is there a way on client to show proxy's certificate?

2019-12-20 Thread GeorgeShen
Running a client program through a proxy server, and I was given the proxy's root CA certificate file. When applied, got the error on the program: "x509: certificate signed by unknown authority". Now I'm wondering if the so called "proxy's root CA cert" is given correctly. I now for openssl, I can

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-12 Thread GeorgeShen
Right. that works now. thanks. - George -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html ___ squid-users mailing list squid-users@lists.squid-cache.org http://lists.squid-cache.org/listinfo/squid-users

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-11 Thread GeorgeShen
did a 'openssl dhparam -out dhparams.pem 4096' to generate the dhparams.pem file, and added those into the squid.conf: http_port 3129 ssl-bump cert=/usr/local/squid/etc/ssl_cert/myCA.pem generate-host-certificates=on dynamic_cert_mem_cache_size=4MB *options=SINGLE_DH_USE:SINGLE_ECDH_USE tls-dh=/u

Re: [squid-users] Is there a scalable way in SSL-Bump forwarding client's certificate to server?

2019-12-10 Thread GeorgeShen
>Yes, look for "client certificate" in your squid.conf.documented. Ok. for the 'clientca=' and 'tls-cafile=', is the purpose for proxy to verify the client cert again this list before allow the connection to go further? or it can use those client certificate also for other things? Also the RFC TL

[squid-users] Is there a scalable way in SSL-Bump forwarding client's certificate to server?

2019-12-10 Thread GeorgeShen
Hi, I've seen some post saying there is a way to configure the squid proxy to get the client certificate. But to be scalable (assume it has many https clients) I'm wonder if the proxy can ask for the client certificate and modify that certificate in negotiating the session with the server; just li

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-10 Thread GeorgeShen
I'm running the squid latest from download site. 4.9 Ok, i suspect that was related to my ^C running the process in foreground, but I also see before that there are warning messages in the log: 2019/12/09 19:23:12.116 kid1| WARNING: /usr/local/squid/libexec/security_file_certgen -s /usr/local/squid

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-09 Thread GeorgeShen
I'm wondering if this issue reported last year is fixed: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-4-4-security-file-certgen-helpers-crashing-td4687098.html or is there a work around. thanks. - George -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-09 Thread GeorgeShen
Hi Alex, this time I tried, a little different, this is the log from got the server certs to colose the SSL with error, and at the end, it is also saying security_file_certgen crashes rapidly!!! below the output of log thanks. - George geyBC5spVGniTZ9g4/4EALHmrmP0d4vcbw0FJugljU7jWmdiUQEpoZZCov

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-08 Thread GeorgeShen
the version 4.9 has the same behavior, can not finish negotiate with the client. I have setup two different client machines, one is macOS, the other alpine linux. I finally got the macOS wget https to work through the squid 4.9 proxy with ssl-bump. So the squid config is ok. The alpine linux, us

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-08 Thread GeorgeShen
Hi Amos, i downloaded the 4.9 latest, and compiled with "./configure --with-default-user=proxy --with-openssl --enable-ssl-crtd", not redo the openssl and proxy certificate part, start squid with 4.9, still seeing failure. Have not debugged in detail. Quick question, when compile for the bump usa

Re: [squid-users] Squid Proxy SSL Bump can not retrieve SSL session back to the client?

2019-12-08 Thread GeorgeShen
Hi Amos, thanks for the comments. I'll first try the later version as you pointed out 4.9 and see if I get the issues. Will report back. thanks. - George -- Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html ___