Does go tool pprof support TLS with client authentication? I see it has TLS 
options, but when I set them it doesn't work. But, it works if I use the 
standalone pprof tool.

$ go version
go version go1.14.1 linux/amd64

$ go tool pprof -tls_ca=./ca.crt -tls_cert=./client.user.crt 
-tls_key=./client.user.key https://localhost:8080/debug/pprof/heap
Fetching profile over HTTP from https://localhost:8080/debug/pprof/heap
https://localhost:8080/debug/pprof/heap: Get 
"https://localhost:8080/debug/pprof/heap": x509: certificate signed by 
unknown authority
failed to fetch any source profiles

$ go get -u github.com/google/pprof
$ pprof -tls_ca=./ca.crt -tls_cert=./client.user.crt 
-tls_key=./client.user.key https://localhost:8080/debug/pprof/heap  
Fetching profile over HTTP from https://localhost:8080/debug/pprof/heap
Saved profile in 
/home/dmai/pprof/pprof.dgraph.alloc_objects.alloc_space.inuse_objects.inuse_space.5629.pb.gz

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/1cb5039b-393a-48f4-b0cd-45672efb177b%40googlegroups.com.

Reply via email to