Skip to content
ARKSD Consultancy Private Limited

ARKSD Consultancy Private Limited

Microsoft Dynamics [Navision & 365 Business Central]

  • Home
  • YouTube Channel
  • Certificates
  • Product & Cumulative
  • Upgrade
  • Training
  • About
  • Freelance Services
  • Contact
Development Tips

Implementing Security Certificates to support login over a WAN

August 7, 2015August 7, 2015 Ashwini Tripathi

Today we will set up an environment to test integrating certificates into a configuration for connecting computers running the Microsoft Dynamics NAV Windows client or Microsoft Dynamics NAV Web Server components to Microsoft Dynamics NAV Server instances over a wide area network (WAN) with the chain trust configuration.

What all we need to get our today’s exercise done?

To complete this process, we will need:

  • The Certificates snap-in for Microsoft Management Console (MMC). If you do not already have this snap-in installed, then follow these steps:
    • Choose Start, choose Run, and then type Mmc.exe.
    • In the console, on the File menu, choose Add/Remove Snap-in.

Certificate-1

    • In the Add Standalone Snap-in dialog box, select Certificates, choose Computer Account, choose Local Computer, and then choose Add.

Certificate-2

Certificate-3

  • The makecert.exe utility. The makecert.exe utility is installed with Microsoft Visual Studio and Microsoft Windows SDK.

We created and installed a root certification authority (CA) and a server certificate on the computer running Microsoft Dynamics NAV Server in previous posts.

If not please follow below posts and then return here to continue.

Previous Step Link- How to create a root CA and a private key file by using the makecert.exe utility

Previous Step Link- How to create certificate revocation list for the root certification authority

Previous Step Link- How to create and install a test certificate for the Microsoft Dynamics NAV Server computer

Previous Step Link- How to grant access to the certificate’s private key to the service account for the Microsoft Dynamics NAV Server

How to modify the Microsoft Dynamics NAV Server configuration file to support login over a WAN

  • Start the Microsoft Dynamics NAV Server Administration tool.
  • Stop the Microsoft Dynamics NAV Server instance.

Certificate-17

  • Modify the following settings for the Microsoft Dynamics NAV Server instance in the Microsoft Dynamics NAV Server Administration tool.
Key New value Description
ClientServicesCredentialType(General tab) NavUserPassword or Username This parameter is on the General tab in the Microsoft Dynamics NAV Server Administration tool. The default value is Windows. When you change it to NavUserPassword or Username, client users who connect to the server are prompted for user name and password credentials.
CertificateThumbprint(Client Services tab) Value of the Thumbprint field in the previous post The default value is <key>. Remove any leading or trailing spaces in the thumbprint.

Certificate-18

  • Choose Save.
  • Restart the Microsoft Dynamics NAV Server instance.

To modify the Microsoft Dynamics NAV Windows client configuration file to add certificate information

  • Open the ClientUserSettings.config configuration file.

The location of this file is Users\<username>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV.

By default, this file is hidden. Therefore, you may have to change your folder options in Windows Explorer to view hidden files.
Certificate-19

  • Modify the following settings.
Key New value Description
ClientServicesCredentialType NavUserPassword or Username The default value is Windows. When you change it to NavUserPassword or Username, client users who connect to the server are prompted for user name and password credentials
DnsIdentity The subject name of the service certificate The default value is <identity>.For this exercise, set the key to NavServiceCert.

Certificate-20
I am using NavUserPassword as credential Type in this example.

  • Save and close the ClientUserSettings.config file.

When you start the client, you are prompted for a valid user name and password for the server domain.
Certificate-21

Enter your User Name and Password to Login, I have created one for my testing as below:
Certificate-22
To modify the Microsoft Dynamics NAV Web client configuration file to add certificate information

  1. On the computer that is installed the Microsoft Dynamics NAV Web Server components, open the installation folder for the Microsoft Dynamics NAV Web client. By default, the folder is C:\Program Files\Microsoft Dynamics NAV\80\Web Client.
  2. Open the web.config file in a text editor, such as Notepad.
  3. Find the <DynamicsNavSettings> element, and then change the following settings:
Key New value Description
ClientServicesCredentialType NavUserPassword or Username The default value is Windows. When you change it to NavUserPassword or Username, client users who connect to the server are prompted for user name and password credentials.
DnsIdentity The subject name of the service certificate For this exercise, set the key to NavServiceCert.
  1. Save the web.config file.

This too works as above, credentials will be asked when you open WebClient.

While writing this post I am not having Web Client installed on my computer so unable include screen shots for same.

 

28.629409 77.432905
Advertisement

Rate this:

Sain Vihar, Crossings Republik, Ghaziabad, Uttar Pradesh, India

Share this with:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to email a link to a friend (Opens in new window)

Like this:

Like Loading...

Related

Tagged 2015, Certificate's, Dynamics, Implementing, Login, Microsoft, MS, Nav, Navision, Over, Security, Support, WAN

Published by Ashwini Tripathi

Company was incorporated under sub-section (2) of section 7 of Companies Act, 2013 and rule 18 the Companies (Incorporation Rules, 2014. Company Directors are (1) Ashwini Tripathi & (2) Rashmi Tripathi We provide wide range of services currently only for Microsoft Dynamics Navision. (1) Freelancing (2) Virtual Employee (3) Hourly basis service (4) Dedicated resource (5) Training You can hire/ contract/ offshore work. Provide assistance and service for Implementation, Development and Upgrade. We are also Partner under Affiliate/MVAR Program for NAV, AX & CRM. Currently we are servicing to only international customers. We have associated with some Indian Companies to service International Customers. We have provided service to Microsoft Affiliated Partners too. We have our own customers too. View all posts by Ashwini Tripathi

Post navigation

Previous postHow to grant access to the certificate’s private key to the service account for Microsoft Dynamics NAV Server
Next postUsing Automation to Write a Letter in Microsoft Office Word

2 thoughts on “Implementing Security Certificates to support login over a WAN”

  1. Pingback: How to grant access to the certificate’s private key to the service account for Microsoft Dynamics NAV Server | Ashwini Tripathi
  2. Pingback: Configuring Web Services to Use SSL (SOAP and OData) | Ashwini Tripathi

Comments are closed.

#Website

#opentowork

Follow ARKSD Consultancy Private Limited on WordPress.com

Archives

Categories

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 5,897 other subscribers

Blog Stats

  • 476,790 hits
Create a website or blog at WordPress.com
  • Follow Following
    • ARKSD Consultancy Private Limited
    • Join 164 other followers
    • Already have a WordPress.com account? Log in now.
    • ARKSD Consultancy Private Limited
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: