web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Web Server in a 3 Tier Architecture

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I'm hoping to find some answers from someone who has done a successful 3-Tier NAV configuration where the NAV Web Server (Public Facing), NAV Server(Mid-Tier) and NAV SQL(Data-Tier) are installed on 3 separate machines. Please note I am running NAV 2016 on Server 2012 R2.

For reference they'll be referred to as:
NAVWEB
NAVSERVER
NAVSQL

For the record, I followed the following article:

https://docs.microsoft.com/en-us/dynamics-nav/walkthrough--installing-the-microsoft-dynamics-nav-web-server-components-on-three-computers 

Everything went smooth until the last phase of the Webserver and particularly securing communications between NAVWEB & NAVSERVER via SSL certificate.

Where I am now:

If I disable all SSL communications and remove the Certificate Thumbprint from NAVSERVER in the configuration, everything works as expected using Windows Authentication in a Active Directory domain environment. I open the url NAVWEB:8080/.../ and I'm in and can see my companies / NAV. Great. 

Where I want to be:

NAV Publicly accessible via e.g. nav.companyname.com secured with SSL so that the url in the browser will read https://nav.companyname.com/Instance/WebClient and users are prompted to log in every time they visit the site, unless they choose to remember credentials in the browser.

The Issue:
I update NAVSERVER configuration to use SSL by changing the authentication type to UserName(Apparently this is a required step for using SSL) and entering the certificate thumbprint. I enable SSL under SOAP.
I imported the SSL certificate from a trusted third-party onto both NAVWEB and NAVSERVER and enabled full access to the NAV Service Account.
The NAV Service account has the correct permissions to register SPN's in Active Directory. These are registered successfully when monitoring the Event Log and when running setspn -L domain\service account.
The NAVWEB server is granted permission in AD to register SPN's using NAV Service Account for HOST/NAVSERVER and HOST/NAVSERVER.domain as well as the DynamicsNAV Services as per official Microsoft Documentation on configuring a NAV Service Account.
I update the NAVWEB server configs to use UserName authentication in the web.config file as per documentation.
The SSL Certificate is set for Server and Client auth on both NAVWEB and NAVSERVER
Everything is pretty much done by the book and the event logs show no errors.

The Results:
When I enter NAVWEB/.../WebClient or localhost/.../WebClient I am prompted with a NAV login screen after ignoring the error about the SSL cert not matching the SubjectName. I use a wildcard *.companyname.com on both NAVWEB & NAVSERVER. I get an error that the user is not permitted to log into NAV or no NAV account has been set up. Yet the account is in NAV and works without SSL.
I've tried both username & password and domain\username and password with the same results.
Furthermore, when I enabled http redirect and configure the hostname in the binding in IIS to nav.company.com, I get a Windows popup login screen before even hitting the NAV login page. I've been able to get past this by allowing anonymous authentication in IIS. But then when I log in to NAV I get a Service error that states "A server error occurred and the content cannot be displayed".

I know I'm close I think its just something stupid that I'm missing. Any ideas / help will be appreciated. 

Thanks in advance!

Edit: I ran a WireShark trace on both NAVWEB and NAVSERVER and I get a lot of red lines where after drilling into the error it seems like a "Connection Reset" error. I am however not a pro with Wireshark so don't know if this means anything to anyone. 

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Why don't you use Azure AD authentication for the public facing Web instance? In combination with MFA you have a good working setup.

    Thanks.

  • Osmidon Profile Picture
    5 on at

    Hi Marco,

    Thanks. That is the plan in the long term for more secure authentication. However, that doesn't solve my issue which is secure communication between the NAVWEB & NAVSERVER.

    I have found more information in Event Logs. It seems the NAVSERVER is listening on the wrong DNS Identity Claim. I use a wildcard SSL certificate from a trusted third-party that includes some Subject Alternative Names. The NAVSERVER chose one of these SAN's to "listen" on and I don't know where to change this on the NAVSERVER. The full error is below.

    Reason = "Configuration setting 'DnsIdentity' has an invalid value"

    Description = "Identity check failed for outgoing message. The expected DNS identity of the remote endpoint was '*.companyname.com' but the remote endpoint provided DNS claim 'wrongsan.companyname.com'. If this is a legitimate remote endpoint, you can fix the problem by explicitly specifying DNS identity 'sanname.companyname.com' as the Identity property of EndpointAddress when creating channel proxy. "

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hi,

    Ah yes, that is bug that has been resolved on the way. On a SAN certificate, it does choose the wrong alternative names. I assume you are not running latest build of Dynamics NAV?

    Anyway, our recommendation is to use a modern authentication to provide your users best user experience. Please do consider it for the short term.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans