While trying to set up an SslStream
, the example has a call in the client:
sslStream.AuthenticateAsClient(targetHost);
For AuthenticateAsClient
, the documentation states "The value specified for targetHost must match the name on the server's certificate.
"
How can I find the targetHost
of my x509 certificate?