when using an ipv4 adress to connect to a local server (written in dart) from a flutter windows app.
I use a subject alternative name, to be able to pass this raw ipv4 adress.
I use the latest 3.0.2 version of grpc.
Repro steps
I have configured a server certificate and key, as well as client ones, with the following command :
openssl req -new -nodes -x509 -days 365 -keyout server.key -out server.crt -config config_ssl
I have the following error :
when using an ipv4 adress to connect to a local server (written in dart) from a flutter windows app. I use a subject alternative name, to be able to pass this raw ipv4 adress.
I use the latest 3.0.2 version of grpc.
Repro steps
I have configured a server certificate and key, as well as client ones, with the following command :
openssl req -new -nodes -x509 -days 365 -keyout server.key -out server.crt -config config_ssl
(and also :)
openssl req -new -nodes -x509 -days 365 -keyout client.key -out client.crt -config config_ssl
Here is the config_ssl file :
--> The error is above.
Details
Client
I use the following class that herits from ChannelCredentials for the Client :
This is used right there on the client :
Server
Btw, i don't know where this validateClient is called currently
Used here :
Any help would be much appreciated !