Added ability to specify TLS configuration for MITM server