Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liutxxx/tls-examples
https://github.com/liutxxx/tls-examples
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/liutxxx/tls-examples
- Owner: LiuTxxx
- Created: 2024-09-10T11:12:28.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T11:20:20.000Z (4 months ago)
- Last Synced: 2024-09-10T12:48:57.527Z (4 months ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TLS upon TCP/HTTP/RPC in go
This repo gives an simple example of TLS configure upon TCP/HTTP/RPC in go.
To run these code:
```bash
# run server and client with cmd below in two terminal
go run fileName.go
```If want to regenerate the key and cert
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout key_name.key -out cert_name.crt -config openssl.cnf -extensions req_ext
```