adds toggleable TLS on mock server