This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference blog | |
http://tiebing.blogspot.com/2013/06/golang-ssl-server-and-client-example.html | |
To generate key.pem and cert.pem, you can use openssl, or use go team's simple program included in go package: http://golang.org/src/pkg/crypto/tls/generate_cert.go | |
# https://github.com/nareix/blog/blob/master/posts/golang-tls-guide.md | |
# http://colobu.com/2016/06/07/simple-golang-tls-examples/ |