example-grpc-crud-service-with-tls

module
v0.0.0-...-de2f53b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: MIT

README

example-grpc-crud-service-with-tls

Inspired in an article of mine, this project enhances example-grpc-crud-service showing how to secure it with TLS.

running it

  1. generate both certificate and private key files
make gen-certs
  1. run the server
make run PORT=<port>
golang client

For client examples, check examples/client folder.

Postman

https://learning.postman.com/docs/sending-requests/certificates/

  1. In Settings -> Certificates

addCert

It will look like this:

certs

  1. Make the request. don't forget to enable TLS (lock icon)

req

running tests

make test

coverage report

make coverage

Directories

Path Synopsis
api
db
examples
Package mapper provides functions to convert between gRPC data models and database models for book entities.
Package mapper provides functions to convert between gRPC data models and database models for book entities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL