]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug fix: ssl_crtd crashes when accessing HTTPS sites with a domain name exceeding...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Sat, 3 Mar 2012 06:25:33 +0000 (08:25 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Sat, 3 Mar 2012 06:25:33 +0000 (08:25 +0200)
commit5367d84507a6cd6f9fc18e723638350751d39292
tree12ba60c74e79f240acf0a3965750b2a2dec29c53
parentfd4624d7e193817a763d4474fcab5436512fd945
Bug fix: ssl_crtd crashes when accessing HTTPS sites with a domain name exceeding 64 characters

Squid tries to generate a certificate for long domain names, which is not
possible.
According to RFC 5280 (Section A.1), the common name length in a certificate
can be at most 64 characters. Therefore it is not possible to generate a valid
certificate with the above domain name as common name.
This patch does not allow use of common names longer than 64 bytes in
setCommonName adaptation algorithm. Also In the case the openssl fails to
read subject name from mimicking certificate does not set any subject to
generated certification. (currently ssl_crtd crashes).
src/cache_cf.cc
src/ssl/gadgets.cc