[Golang] Build A Simple Web Service part.7 — Learn the SSL/TLS connection
Published in
7 min readApr 20, 2019
As I mentioned in my previous article, I decided to review the basic knowledge instead of learning new frameworks.
In this article, I will introduce:
- How SSL/TLS connection works.
- Implement the HTTPS server and the client in Golang.
The overview of SSL/TLS connection
There are several steps to establish a trusted end-to-end communication on Secure Sockets Layer (SSL) connection.
The browser only contains built-in Root CA certification. The server side must install the SSL certification.
- First, the client side asks for the SSL connection.
- The server generates the signed data.
- The server responds with the signed data to the client.
- The client will authenticate the SSL certificate and the digital signature.
- Finally, the client sends the encrypted session key and encrypted data to the server.