
Microservices Communication in .NET Using gRPC
By :

In this chapter, we will learn how to secure your ASP.NET Core gRPC service application with SSL/TLS certificates. We briefly touched on this topic in Chapter 1, Creating a Basic gRPC Application on ASP.NET Core, where we saw how to use the .NET command-line interface (CLI) to create a self-signed development certificate. We also saw how this allows you to map your hosted application to a port that is accessible via HTTPS.
However, a self-signed development certificate is not something you would want to use in production. In a real-life scenario, you would want to protect your application with a bespoke certificate that has been issued by a recognized certification authority. This chapter will cover how such certificates work in detail.
We will cover the following topics: