06-01-2020 04:55 AM - last edited 2 weeks ago by fcaelen
Has anyone been able to get HTTPs working on Consumer Portal? We are trying to enable behind a Reverse proxy, but the biggest issue we have had is getting WMPS to work.
Have had to change backend as per other discussions. the webconfig looks like this now:
<wsHttpBinding> <!-- "MapPublisherBinding" needs different configuration for HTTP and HTTPS schema. You must choose the right one depending on the scheme of WMPS services you intend to run You can find these configurations below. CONFIGURATION FOR HTTPS SCHEMA: --> <binding name="MapPublisherBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10"> <security mode="TransportWithMessageCredential"> <message establishSecurityContext="true"/> </security> </binding> <!-- CONFIGURATION FOR HTTP SCHEMA: <binding name="MapPublisherBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10"> <reliableSession ordered="false" /> </binding>--> <binding name="EGISBinding" maxReceivedMessageSize="2147483647" sendTimeout="00:10" /> <binding name="wsHttpBinding" maxReceivedMessageSize="1000000" sendTimeout="00:10" /> </wsHttpBinding>
We get the below error when the backend does a PUT with this as the payload:
The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
06-01-2020 02:08 PM
What version of WebMap are you using ?
Have you modified the web.config of the WMPS service ? Also have you modified the web.config of the BackendWMPS (C:\Program Files\Common Files\Hexagon\Services\AdminInstances\BackendWMPS) ?
06-01-2020 03:41 PM
Webmap Advantage 2020 - 18.104.22.168. Yes I have done so for both confg files, by following the guide on this community site.
I tried using backendwmps to no avail. I feel as though the issue is in the backend web.config not wmps as switching betwen wmps and backendwmps didn't make any difference (with multiple http/https configs)
I was hoping someone could help out based on their own examples of rsetting this up.
Ideally we would have minimal changes as it is behind a reverse proxy.
06-02-2020 12:00 PM
The stock v16.6 WebMap support HTTPS configuration for Consumer Portal, the official document is here:
What error are you getting when you visit BackendWMPS service (after modifying the BackendWMPS web.config to use HTTPS schema as per the internal comment within the web.config) ?
You may want to test the HTTPS WMPS service as well (as per the official doc), what do you see from the HTTPS WMPS service ?
Could you post the link of the guide you were refering to ?
06-02-2020 05:24 PM
I was referring to similar steps in this documentation.
I have confirmed this specific issue was due to misconfiguration of the cert vs the url.
Still struggling to get this working through and F5 reverse proxy. Would be awesome if there was a guide on what needs to be done on the server + reverse proxy if anyone has one, or has done it?