Developer forum

Forum » Integration » SSL Dynamicweb Connector Service

SSL Dynamicweb Connector Service

Martin Moen
Reply

Is there any guide, or documentation explaining how to setup SSL/HTTPS with the Dynamicweb Connector Service?


Replies

 
Nicolai Pedersen
Reply

Anything in particular?

The guide is here - https://doc.dynamicweb.com/documentation-9/integration/integration-framework-2/dynamicweb-connector-service

Some things related to using https - i.e. if you are using self signed certificates...

BR Nicolai

 
Martin Moen
Reply

Yes, I'm aware of that guide, and there is something about https related to the ERP service.

But what I'm talking about is the Connector Service between ERP and DW.
The one which is created as a windows service when it is being started.

In the guide you use http not https, and that is working perfectly.
But what if you need https on this as well, how do you attach a SSL sertificate to that service or exposed url.

 

Merknad_2020-09-09_084923.png
 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Martin,

The configuration and creation of SSL is described here:
http://www.codeproject.com/Articles/24027/SSL-with-Self-hosted-WCF-Service

It is needed to follow the steps in this guide till the section called "The WCF Service".
I've attached the batch files you can use for creating the ssl certificates, but first you should check if the pathes to the commands are correct
and put your own GUID for your created ssl certificate. 

Also I've attached the httpcfg.exe utility for ssl setup, since it was missing on my computer and may be missed somewhere else.

After installing the ssl you need to open the DynamicwebService configuration file (DynamicwebConnectorService.exe.config)
and fix the key="WebserviceURI" value to use SSL(it must start with "https") for example: value="https://localhost:8090/DynamicwebService".
After that you need to restart the DynamicwebService windows service from Computer -> Management -> Services.

If you want to stop using SSL you need to change the "https" to "http" for "WebserviceURI" and restart the DynamicwebService windows service.

Kind regards, Dmitrij

Votes for this answer: 1
 
Martin Moen
Reply

Perfect, thanks!

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

It is now also available on the doc site here.

 
Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Is the documentation a bit outdated?
I dont think httpcfg is supported anymore, but you can use netsh instead.

We ran into some trouble setting it up. The HTTPS web service URL was available through the browser, but not the test tool.
In the test tool we got this message (below), any thoughts?

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Martin,
it looks like you have an authentication to EPR problem, try to stop DynamicwebConnectorService and change the DynamicwebConnectorService.config file your connector settings:
<!-- Valid options for ClientCredentialType are: Default, Ntlm, Windows, Basic -->
    <add key="ClientCredentialType" value="Default" />

try: Default, Ntlm, Windows, Basic
and per of each of them stop/start the Windows service.
Try to set NTLM type in NAV/your ERP and DW service.
Kind regards, Dmitrij

 

You must be logged in to post in the forum