Creating and trusting a self-signed certificate
There are many different ways of creating TLS certificates for your web application. But regardless of the method you use, the principles remain the same.
For gRPC, all the principles of applying a certificate are identical to those for an ordinary web application that is accessible via HTTP/1.1. We even use the same kind of file to encrypt communication between the endpoints.
However, in an ASP.NET application, the application of the certificate differs depending on the kind of server you want to host your application on. Applying a certificate on IIS would be different from applying one on Kestrel. But even on the same type of server, there are still different ways to apply a certificate. For example, just like the HTTP port mappings we covered in the previous section, you can reference the certificate directly in the code, or you can reference it in the application settings.
Covering all of the different ways of applying certificates...