Mutual TLS through a Reverse Proxy

Zhimin Wen
4 min readJun 30, 2022
Image by Willi Heidelbach from Pixabay

I created a sample mTLS application to test the configuration of the reverse proxies (namely HAProxy and Traefik) for routing the traffic based on the SNI hostname.

The sample app

A toy program that performs the validation of the client’s certificate.

func greet(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "App:%s Hello World…

--

--