Skip to content

this will be a HTTP server and can be accessed via TLS and non-TLS mode

Notifications You must be signed in to change notification settings

dunefro/http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application

  1. server.go runs a HTTP/HTTPS server on the port 9090.
  2. It gives you 4 endpoints
/
/healthz
/unprotected
/protected
  1. /protected requires username and password that is sourced from a file called creds.txt
  2. /unprotected will give you back some data, to test in wireshark
  3. You can run this server in TLS and non-TLS mode to test the connection.

How to run

  1. go run server.go
  2. If the application is running in server.go as srv.ListenAndServeTLS then you can access it via https
  3. Open wireshark and try to access the Authorization: Basic <base64> request for /protected handler 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

About

this will be a HTTP server and can be accessed via TLS and non-TLS mode

Resources

Stars

Watchers

Forks

Packages

No packages published