TCP to TLS upgrade An example code how to upgrade TCP connection to TLS in Go Provided with two sets of certificates to see it fail simply replace certificate in client.go with cert2.pem