I have a window service using WebAPI self-service. HttpSelfHostConfiguration.HostNameComparisonMode set HostNameComparisonMode.Exact to strongly match the host name.
var config = new HttpSelfHostConfiguration(uri); config.HttpSelfHostConfiguration = System.ServiceModel.HostNameComparisonMode.Exact; this._server = new HttpSelfHostServer(config); _server.OpenAsync().Wait();
And URL reservation for the specified URL namespace for the domain.
netsh http add urlacl url=https:
To bind an SSL certificate to a port number.
netsh http add sslcert ipport=0.0.0.0:443 certhash=xxxxxxxxxxx appid={xxxxxxxxx}
But the result is an HTTP 503 error. I don't know the status.
c # asp.net-web-api
Jungho choi
source share