I\'m rather new to C#, and I need to use GRPC over TLS.
As a dry-run, I\'m modifying the example provided in the main grpc repo to use TLS. To do this, I found anoth
Your code is implementing Mutual TLS with self signed certs correctly - I was able to run it on windows netcore without any changes.
I did have to tweak the certificate generation script a little:
CLIENT-COMPUTERNAME
, used for the client /CN
(Common Name)-config
option to get rid of unable to find 'distinguished_name' in config
error (might be a openssl on Windows thing)I was able to reproduce the same error message that you had by deliberately mismatching the host that the client connects to (127.0.0.1
instead of localhost
). So maybe you just need to regenerate your keys with e.g. localhost
as the client's common name.