directory
Version:
v0.0.0-...-7760e95
Opens a new window with list of versions in this module.
Published: Apr 17, 2020
License: MIT
Opens a new window with license information.
README
¶
Secure RPC with TLS/SSL
- Client: Single request
- Server: Single response
Generate code
protoc -I . --go_out=plugins=grpc:. proto/center.proto
Generate server key and certificate
server.key
: a private RSA key to sign and authenticate the public key
server.crt
: self-signed X.509 public keys for distribution
openssl req -new -x509 -days 365 -sha256 -newkey rsa:2048 -nodes \
-keyout "server.key" -out "server.crt" \
-subj "/emailAddress=admin@devplayg.com/CN=devplayg.com/OU=Cert/O=Devplayg/L=Pangyo/ST=Sungnam/C=KR"
Run server
go run server/main.go
Run client
Secure
go run client/main.go
Insecure
go run client/main-insecure.go
References
Directories
¶
Click to show internal directories.
Click to hide internal directories.