Added the '-C' flag for CA chain and code to set conn accordingly before invoking tlsServer.