Using your own PKI for TLS in Golang

这个人搭建的PKI体系就是用来实现Server和Client端的相互认证的

他的github上有Server和Client端的源码

hydrogen18/test-tls · GitHub

,实现了双向认证的功能