I'm trying to use this tokio_openssl connect method to connect to target server.
I notice that in openssl's connect method, it took domain argument while tokio_openssl take no domain name.
If I connect to target server via something like "127.0.0.1:1234" which have actual domain name as "TEST_DOMAIN", how do I use tokio_openssl to verify that the target IP have cert with "TEST_DOMAIN" as SN ?
and since tokio_openssl need an object of type Ssl. The config object have this method which convert the connector into ssl with validate hostname enabled: