Re: [go-nuts] Mutual tls example

2019-04-21 Thread Vasiliy Tolstov
Thank you, may be i find mode detailed example https://diogomonica.com/2017/01/11/hitless-tls-certificate-rotation-in-go/amp/ вс, 21 апр. 2019 г. в 15:22, Aldrin Leal : > > I did a while ago, but I can't share a sample. But you can build one, > provided that: > > 1. build your server as such (not

Re: [go-nuts] Mutual tls example

2019-04-21 Thread Aldrin Leal
I did a while ago, but I can't share a sample. But you can build one, provided that: 1. build your server as such (note the ClientAuth - thats where magic happens): ... rootCAs, _ := x509.SystemCertPool() if nil == rootCAs { rootCAs = x509.NewCertPool() }

[go-nuts] Mutual tls example

2019-04-21 Thread Vasiliy Tolstov
Hi, I'm try to find mutual tls example in go, but can't find simple example that uses crypto/tls. I need server that for some http handler for user request with token returns tls cert for communication, and client that uses this cert to communication after it returned from request. Ideally with abi