I am using .NET 6 to try to make to work the default gRPC service that is created when I create a new gRPC project for ASP.
To test if I can connect to the service, I use grpcui.
I can connect when I don't use certificates, connecting to the http address, but when I try to use a certificate, using the https address, I get the error:
Cannot validate certificate for x.x.x.x because it doesn't contain any IP SANs.
I guess that is because I don't create the server certificate in the correct way, because I have to set the IP in the field SAN, but I don't know how.
What I did it is to set as CN the IP of the server, but it seems that this is not the correct place to set the IP.
So I would like to know what is SAN and how I could create the certificates with this field.