Intercepting a TLS connection and serving a different certificate based on hostname

I am trying to write a mitmproxy addon that allows me to automatically intercept a TLS connection from a client by using the hostname and then on-the-fly generate a new certificate (with pyOpenSSL and cryptography) and serve that certifica… Continue reading Intercepting a TLS connection and serving a different certificate based on hostname