Re: Why fail to open secure connection to the client incidentally, and what's the proper cleaning strategy for the generated certificates?

Fabian Keil <[email protected]> Sun, 21 Mar 2021 08:48:35 +0100
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
Wen Yue <[email protected]> wrote on 2021-03-18:

> Thanks very much for your informative && inspiring reply!

You're welcome.
 
> On Thu, Mar 18, 2021 at 1:47 AM Fabian Keil <[email protected]> wrote:
> 
> > Wen Yue <[email protected]> wrote on 2021-03-17:

> > > I re-checked these log msg today, there's nothing severe about the
> > > client connection but this one:
> > >
> > > 2021-03-16 22:36:07.730 7f45887d0700 Error: X509 PEM cert len 16694
> > > is
> > > > larger than buffer len 16383
> > > > 2021-03-16 22:36:19.148 7f47bbfff700 Error: X509 PEM cert len
> > > > 16694 is larger than buffer len 16383
> > > >
> > >
> > > I've no idea what happened.
> >
> > Privoxy 3.0.32 uses buffers with a fixed size to temporarily store
> > the certificates in case the server certificate can't be validated
> > (in which case the user may want to inspect the certificates).
> >
> > The message indicates that a certificate was too large to fit
> > into the buffer and got truncated. If Privoxy was able to verify
> > the certificate sent by the web server this doesn't matter.
> >
> > I'm currently testing a patch to use dynamically allocated buffers
> > which should fix this issue.

The patch has been pushed to git master:
https://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff;h=85bc700695d99d5858dbaa1448251e48df9ce747

Fabian

_______________________________________________
Privoxy-users mailing list
[email protected]
https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmBW+lMACgkQaRgikYui
NxxI9xAAnvIWd7qU/pZUWaabyt0KppMZND54JA7U2DNShKK4rlQxjzcX6t4dlDqo
jhzbHt5X4l8HQvHkFO1cbf3ImtXxeAJo96v/qNDRZSNv6BzJnR/AKqNX1D4BT+xX
c8B+ltcjbCNblsnazaOh6QE3LoXtV6E9yqq9QPuWOMPgC9L+jsqwmeC9f9s1lTEL
gF5NBr0yzIs6tdmHn41HFW+eDhjNk9XOvL6dGku1SWEp0DdG6RiBFlnYe3w5i3JW
BBi55+QrQNRbfh+v7/szXE7IpNqi01rosQz/+m/N8yFle+tc7wEseaSm1MRztgTK
D1qRi+OShOnc3/pw/eqwI5WxdpNr+bBXxG6O3V+shKADGl05/r+Uqhs4MF1pA1As
RleKdH9VFEt3qPmYLBydNea/RvYYajBzwMLa3hlUvmchvspINQPyVgwmNbTYeqrm
NP5yEBt01gQwtX4P5lcJElh2PsWrib4yjWvzFFLycPxvj3mZvyilID6/syTyjPj+
xjZ01yqmGnG5VGpy0BD06ZPWtRIIpdPGpqAElCm75o9J5ROSSWG3ZBTGRDffmkva
jjE7mFf1kyryrEkiDtT6As7FQ4Q4ghDXQflMOx80uogfM7uc6/qBmAKRjVNv09xn
d2wPCSTK5hV9BwBwdVNMBgxAd8Q+gsUzGr464gmx+WVU9pfgdB0=
=Yh8Y
-----END PGP SIGNATURE-----