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]> Mon, 15 Mar 2021 15:56:19 +0100
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
Miles Wen <[email protected]> wrote on 2021-03-15:

> I'm using privoxy v3.0.32 on macosx v10.15.6 catalina. With https
> inspection on.
[...]
> I incidentally get some error logs like this:
> 
> > 2021-03-15 10:07:44.978 7f863fa1f700 Error: The TLS/SSL handshake with
> > the client failed: error:1408F09C:SSL routines:ssl3_get_record:http
> > request 2021-03-15 10:07:44.978 7f863fa1f700 Error: Failed to open a
> > secure connection with the client
 
> Anybody have ideas about this error msg?

Do you know which client is causing the messages?
Has the client been configured to accept Privoxy's CA certificate?

> As long as I'm using https inspection, I wrote a program to delete the
> generated certificate files older than 11 hours. But I don't know if this
> is the best cleaning strategy.

The best cleaning strategy depends on your goals.

How did you choose 11 hours?

> I also get some errors like this:
> 
> > 2021-03-15 10:10:07.260 7f86209e1700 Error: X509 subject name (code:
> > CN, val:
> > only-d-pmjr9f4mclevwwl2mwckreicm8k1afzk-1615774207025.nstool.netease.com)
> > error: error:0D07A097:asn1 encoding
> > routines:ASN1_mbstring_ncopy:string too long

> Are these errors related to my certificates cleaning? What's next I can
> do to try to fix it?

Thanks for the report.

Apparently OpenSSL does not accept common names longer than 64 characters.
This should be fixed in git master now:
https://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff;h=7fb2856b4d81f1a6c63054cc8a002b9aa3a5fb69

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-----

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmBPdZMACgkQaRgikYui
NxwdyA//d1PcmSO/7qsBfytSMabsVqyQjlfc756srKsWjJJJD6X0rAE4DJtKPXrO
V/IJiRPVWqtSARBmzKCq9gzjIsyzC6kvTiW5646OPDAXox07tOq7gAJwfNWn39Et
peCCYVaiPMZWBklwHD60MSfnd/5Rl8dS4o9q0vrtAJxs0WPx0tS1BK5Zu5eeYr0J
+rcUmO91p66XmVySy/HUchjHS8V+14y+h1ITWbZNGRryKqnxlhNvu5tknWZ27Odl
s0PBCmZgZp9fpuVfBkLofR3/xJDinM4pXpam5OnGdLI3qpTpjuO54t+lRyCv3yq9
M6qOcS8QdLIyP7QvBkel//uqkRmoqUwIULWdIvJPSrtyvAw2hOCV3upnJ5Hgp7IA
jS9Sh5GPOGSHnEP8OND9taWUpAs74YTnaFL+eFgAeVUHBYB/J70ympU0DyWkkdNe
K0YFaqm/qcIGh8A/c3jCemWWrACEQISJum1UnJnAK3QRvWhT3Vqz8mmkdsVAzs/E
Bh0gDNEynAxxBW6z7kY/HuPPWm+Gv6tDBLisdq8tGppzV9Gisecz9etXR3a1XL+V
oE9Fw0O8eVNXxHEWddM4X+413vjpKHdOF8/0moYJwTExwl31B1jhK91R9urg5UpV
Lp/V+WiiwNt99VFUioCkxioGh5AmpgXv/ZswiVkflP24xpokdZU=
=I+T5
-----END PGP SIGNATURE-----