server.goruns a HTTP/HTTPS server on the port 9090.
- It gives you 4 endpoints
/ /healthz /unprotected /protected
/protectedrequires username and password that is sourced from a file called
/unprotectedwill give you back some data, to test in wireshark
- You can run this server in TLS and non-TLS mode to test the connection.
How to run
go run server.go
- If the application is running in
srv.ListenAndServeTLSthen you can access it via
- Open wireshark and try to access the
Authorization: Basic <base64>request for
a. With non-TLS you can decode the header by
echo <base64> | base64 -d
b. For TLS you will not be able to do that