Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lira/go-mtls

Applying tutorial mTLS with Go https://venilnoronha.io/a-step-by-step-guide-to-mtls-in-go
https://github.com/lira/go-mtls

golang mtls ssl

Last synced: 2 days ago
JSON representation

Applying tutorial mTLS with Go https://venilnoronha.io/a-step-by-step-guide-to-mtls-in-go

Awesome Lists containing this project

README

        

# go-mtls

## Commands
### Start server
```shell
go run -v server.go
```
### Start client
```shell
go run -v client.go
```
### Generate certificate
```shell
openssl req -newkey rsa:2048 \
-new -nodes -x509 \
-days 3650 \
-out cert.pem \
-keyout key.pem \
-subj "/C=BR/ST=Sao Paulo/L=Sao Paulo/O=Your Organization/OU=Your Unit/CN=localhost"
```
### Add Go Debug
```shell
echo 'export GODEBUG=x509ignoreCN=0' >> ~/.zshrc
```