I currently have a Windows service hosting the WCF service. This WCF service uses the endpoint for net.tcp, but now the service should be available outside our domain.
The information on the Internet was insufficient to find information on how to use https without IIS, because every example I found was with IIS.
What I have so far, the following configurations: server :
<bindings>
<wsHttpBinding>
<binding>
<security mode="Transport">
<transport clientCredentialType="Certificate"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceCredentials>
<clientCertificate>
<authentication certificateValidationMode="PeerOrChainTrust"/>
</clientCertificate>
<serviceCertificate findValue="JdnNetRootCA" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="Root"/>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service name="Jdn.Historian.Service.HistorianService">
<endpoint address="https://localhost/Historian" binding="wsHttpBinding" contract="Jdn.Historian.Schema.Service.IHistorian" />
</service>
</services>
customer
<bindings>
<wsHttpBinding>
<binding>
<security mode="Transport">
<transport clientCredentialType="Certificate" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://localhost/Historian" binding="wsHttpBinding"
contract="Historian.IHistorian" behaviorConfiguration="secure">
</endpoint>
</client>
<behaviors>
<endpointBehaviors>
<behavior name="secure">
<clientCredentials>
<clientCertificate findValue="JdnNetRootCA" x509FindType="FindBySubjectName" storeLocation="LocalMachine" storeName="Root"/>
<serviceCertificate>
<authentication certificateValidationMode="PeerOrChainTrust"/>
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
and the host is initialized as follows:
var host = new System.ServiceModel.ServiceHost(typeof(Historian.Service.HistorianService));
host.Open();
but I can't get it to work. I get an error message:
HTTP https://localhost/Historian. , HTTP.SYS HTTPS. .
, . , .
, ? - , .