Trên GitHub, haoel/mTLS đã đạt 249 sao, ngôn ngữ Go. golang mTLS example
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Mutual TLS, or mTLS for short, is a method for mutual authentication. mTLS using TLS do both side authentication & authorization.
mTLS helps ensure that traffic is secure and trusted in both directions between a client and server.
2. How does mTLS work?
Normally in TLS, the server has a TLS certificate and a public/private key pair, while the client does not. The typical TLS process works like this:
Client connects to server
Server presents its TLS certificate
Client verifies the server's certificate
Client and server exchange information over encrypted TLS connection
In mTLS, however, both the client and server have a certificate, and both sides authenticate using their public/private key pair. Compared to regular TLS, there are additional steps in mTLS to verify both parties (additional steps in bold):
Client connects to server
Server presents its TLS certificate
Client verifies the server's certificate
Client presents its TLS certificate
Server verifies the client's certificate
Server grants access
Client and server exchange information over encrypted TLS connection
3. Example Walkthrough
3.1 Certs and Keys
3.1.2 Using Golang generate the Certs and Keys
The source code is certs.go, just simply run it.
go run certs.go
This source code only uses the Go Standard Library - the x509 package
There are two functions - makeCA() and makeCert()
In makeCA(), we need to set the IsCA flag to true
In makeCert(), we set the DNSNames as localhost
3.1.2 Using OpenSSL generate the Certs and Keys
The completed script is key.sh
Generate CA Root. The first thing we need to do to add mTLS to the connection is to generate a self-signed rootCA file that would be used to sign both the server and client cert.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/haoel/mTLS là nguồn chính thức.
haoel/mTLS có bao nhiêu sao?
haoel/mTLS có 249 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/haoel/mTLS. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
haoel/mTLS có phải mã nguồn mở không?
Có — haoel/mTLS phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/haoel/mTLS.
haoel/mTLS còn đang phát triển không?
Commit gần nhất trên haoel/mTLS là 4.4 năm trước (theo timestamp GitHub). Repo có 38 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
haoel/mTLS là gì?
haoel/mTLS (haoel/mTLS) là dự án Go trên GitHub. Theo mô tả gốc: golang mTLS example
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về mTLS?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về mTLS.