if no_upstream_cert is set, include SNI value als SubjectAltName, fix #291

This commit is contained in:
Maximilian Hils 2014-07-18 23:04:24 +02:00
parent a48cccadb5
commit c7425f42db

View File

@ -237,6 +237,8 @@ class ConnectionHandler:
if upstream_cert.cn:
host = upstream_cert.cn.decode("utf8").encode("idna")
sans = upstream_cert.altnames
elif self.config.no_upstream_cert and self.sni:
sans = [self.sni]
ret = self.config.certstore.get_cert(host, sans)
if not ret: