As you probably know there is a very nice NAV App for iOS (and Android). For very good reasons this App however only connects to NAV WebClients secured by https. This is no problem using a NAV Container as it will by default also serve an https-secured WebClient. However if you don’t use an official certificate and instead just let the Container create a self-signed one, you will still get a connection error by the App. This is also true if you use a “traditional” install of the WebClient outside of a Container with a self-signed certificate1.
The problem is easily solved with the following steps. There are a number of blog posts about it including this one by Microsoft and this non-NAV related one by Vincent Lynch but I didn’t find a simple step by step explanation and as I today had to find out how it works, I decided to share it.
docker run -e accept_eula=Y --name ipadtest --hostname ipadtest.global.fum --network MyTransparentNetwork microsoft/dynamics-nav:2017-cu12-de
As you can see, I am using a fully qualified hostname and a transparent network to make the connection easier, but depending on your situation, you might have different needs
Initializing... Starting Container Hostname is ipadtest.global.fum PublicDnsName is ipadtest.global.fum Using NavUserPassword Authentication Starting Local SQL Server Starting Internet Information Server Creating Self Signed Certificate Self Signed Certificate Thumbprint 891BC16763888D9823B9478AEA87B011821D16CD Modifying NAV Service Tier Config File with Instance Specific Settings Starting NAV Service Tier Creating Web Site Creating NAV Web Server Instance Creating http download site Creating Windows user Enabling SA Creating NAV user Container IP Address: 10.111.95.12 Container Hostname : ipadtest.global.fum Container Dns Name : ipadtest.global.fum Web Client : https://ipadtest.global.fum/NAV/WebClient/ NAV Admin Username : admin NAV Admin Password : Jota1878 Files: http://ipadtest.global.fum:8080/certificate.cer Initialization took 83 seconds Ready for connections!
http://ipadtest.global.fum:8080/certificate.cer
https://ipadtest.global.fum/NAV/