Chapter 9.
Server and security improvements
In this section of the book we’re going to focus on making improvements to our application’s HTTP server. You’ll learn:
- How to customize server settings by using the
http.Server
type. - What the server error log is, and how to configure it to use your structured logger.
- How to quickly and easily create a self-signed TLS certificate, using only Go.
- The fundamentals of setting up your application so that all requests and responses are served securely over HTTPS.
- Some sensible tweaks to the default TLS settings to help keep user information secure and our server performing quickly.
- How to set connection timeouts to mitigate the impact of slow-client attacks.