This would now work based on http://tiebing.blogspot.nl/2013/06/golang-ssl-server-and-client-example.html