Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. Prepare a SSL certificate (Self-signed certificate or purchase from a certificate authority).

2. Ensure the Dynamics NAV Web client is work and setup properly.
- the web client instance point correct database/NAV instance.
- the web client instance using user authentication match desired NAV instance authentication.

3. Prepare a "location" for download the certificate file. (If planning use Self-signed certificate)
- the certificate file can be store at web client folder.
3.1 Please
- Please ensure the certificate "location" is enable MIME type for download certificate file.
- it (It can be check at IIS Manager.)
Image Removed
3.2 Add Image Added

- Add new MIME type for download certification file.
(MIME type <application- application/pkix-cert>cert)


4. Generate the Self-signed certificate.
- Download and save the PowerShell script from 
https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6#content.

- Open a PowerShell prompt with the option As administrator.
Image Added

- Go to the directory where you saved the New-SelfSignedCertificateEx.ps1 file.
Image Added

- Run the following command: Import-Module .\New-SelfSignedCertificateEx.ps1.
Image Added

- Then run the following command: New-SelfSignedCertificateEx –Subject 'CN=<your site name>' –IsCA $true –Exportable –StoreLocation LocalMachine -SubjectAlternativeName certauth.fs.<your site name>, <your site name> -FriendlyName 'UICL App Cert'
Image Added

If using Domain name to generate the cert.
New-SelfSignedCertificateEx –Subject 'CN=*.'CN=<Domain Name>' –IsCA $true –Exportable –StoreLocation LocalMachine –StoreName My -SubjectAlternativeName certauth.fs.<domain name> <domain name>

5. Import the Self-Signed Certificate to App Server.

- Open the mmc.exe.
Image Added

- Go to the File menu, and then choose Add/Remove Snap-in...
Image Added

- Select Certificates.
- Choose Add.
Image Added

- Select the computer account.
Image Added

- Choose Finish and then OK.

Image Added

- Locate and copy the certificate you just created in the personal/certificates folder.
Image Added
 
- Paste the certificate into the Trusted Root Certification Authorities/Certificates folder.
(right-click the Certificates the folder)
Image Added

- Select the certificate, right-click and export the certificate.
Image Added

- Select the No, do not export the private key option.
- Choose Next.
- Select DER encoded binary x.509 (.cer).
Image Added

- Specify a location and filename and finish the wizard.
Image Added

6. Adding an HTTPS Binding That Uses the Certificate on the Microsoft Dynamics NAV Web Client Site.

- Open Internet Information Services (IIS) Manager.
- In the Connections pane, expand the Sites node, and then choose the Microsoft Dynamics NAV Web client site to which you want to add the binding.
(By default, the site has the name Microsoft Dynamics NAV 2017 Web Client.)
- In the Actions pane, choose Bindings.
Image RemovedImage Added

- In the Site Bindings dialog box, choose Add.


- In the Add Site Binding dialog box, set the Type field to https.
Image RemovedImage Added


(You can use the default port 443 or change it to another port. If you change it to another port, you will have to provide the port number in the URL when you try to open the client.)

- Set the SSL certificate field to the certificate that you obtained or created for the site.
- Choose the OK button, and then choose the Close button.
Image RemovedImage Added

- Restart the IIS.
5. Generate and Import to App Server the Self-signed certificate.
- Download and save the PowerShell script from 
https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6#content.
- Open a PowerShell prompt with the option As administrator.
Image Removed
- Go to the directory where you saved the New-SelfSignedCertificateEx.ps1 file.
Image Removed
- Run the following command: Import-Module .\New-SelfSignedCertificateEx.ps1.
- Then run the following command: New-SelfSignedCertificateEx –Subject “CN=<your site name>” –IsCA $true –Exportable –StoreLocation LocalMachine –StoreName My.

...

Android

...




Info
Open Dynamics NAV App and fill in Service link and login NAV user account.
  • https://192.168.1.111/DynamicsNAV100 
    Image AddedImage Added

...