Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lira/go-mtls
- Owner: lira
- Created: 2022-04-27T14:45:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T15:15:28.000Z (over 2 years ago)
- Last Synced: 2024-11-01T23:42:12.892Z (about 2 months ago)
- Topics: golang, mtls, ssl
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```