haoel/mTLS is an open-source project on GitHub with 249 stars, written primarily in Go. golang mTLS example
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
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.
The most recent commit recorded on haoel/mTLS was 4.4 years ago, based on the GitHub push timestamp. The repository has 38 forks — one of the better signals of community interest.
How many stars does haoel/mTLS have?
haoel/mTLS has 249 GitHub stars — refresh the page for the live number, or check github.com/haoel/mTLS. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is haoel/mTLS open source?
Yes — haoel/mTLS ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/haoel/mTLS.
What is haoel/mTLS?
haoel/mTLS (haoel/mTLS) is a Go project on GitHub. From the project's own README: golang mTLS example
Where do I read more about haoel/mTLS?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/haoel/mTLS is the definitive source.
Read full README in the tab above.
Is mTLS worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of mTLS.