Securing a Go Web Application

In this chapter, we will cover the following recipes:

  • Creating a private key and SSL certificate using OpenSSL
  • Moving an HTTP server to HTTPS
  • Defining REST APIs and routes
  • Creating a JSON web token
  • Securing a RESTful service using a JSON web token
  • Preventing cross-site request forgery in Go web applications

Get Go Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.