]> git.ipfire.org Git - thirdparty/squid.git/commit
bug 4711: SubjectAlternativeNames is missing in some generated certificates
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 4 May 2017 15:28:36 +0000 (18:28 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 4 May 2017 15:28:36 +0000 (18:28 +0300)
commitadd2db46ebe10fef114fe84866350ed5af640ab1
tree09bc0be062c2241bd2d5b886fc8b37f227e51643
parent91d7e7c47ef3fb4f9102adee53dd628fb8cd6b32
bug 4711: SubjectAlternativeNames is missing in some generated certificates

Squid may generate certificates which have a Common Name, but do not have
a subjectAltName extension. For example when squid generated certificates
do not mimic an origin certificate or when the certificate adaptation
algorithm sslproxy_cert_adapt/setCommonName is used.

This is causes problems to some browsers, which validates a certificate using
the SubjectAlternativeNames but ignore the CommonName field.

This patch fixes squid to always add a SubjectAlternativeNames extension in
generated certificates which do not mimic an origin certificate.

Squid still will not add a subjectAltName extension when mimicking an origin
server certificate, even if that origin server certificate does not include
the subjectAltName extension. Such origin server may have problems when
talking directly to browsers, and patched Squid is not trying to fix those
problems.

This is a Measurement Factory project
src/ssl/gadgets.cc