Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP
Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP
PURPOSE
Automated scripts (with Powershell) to create a self-signed certificate usable for Dynamics NAV App on Ipad (if you haven’t a Real Commercial Verified Certificate)
This “Powershell automation Script” is based on manual procedure existing in this post “How to get Microsoft Dynamics NAV for tablets to connect using a self-signed certificate” by NAV Team Blog and also based on some scripts by Duilio Tacconi of Microsoft Support Emea. http://blogs.msdn.com/b/nav/archive/2014/10/09/how-to-get-microsoft-dynamics-nav-for-tablets-to-connect-using-a-self-signed-certificate.aspx
STEP 1: REQUIREMENTS FOR USE PRE-USE CERTIFICATE “SELF-SIGNED” – Best Practice Microsoft suggest to use a valid certificate (ex: Purchased from Verisign) – Suggested (but not mandatory) is to install at least the cumulative NAV Update 8 2015 (CU8), it needs to use better management of self-signed certificate (unofficial, not from Vendor).
STEP 2: ELIMINATION OF CERTIIFICATES NOT ALREADY WORKING AND IMPORTED ON IPAD
- First, if you have already created certificates for use with App and these don’t work, remove them all using the console:
STEP 3: PROCEDURE FOR CREATING A NEW SELF-SIGNED CERTIFICATE – This procedure must be used after the installation of Navision Server. CREATION (BUILD) OF NEW CERTIFICATE – This procedure creates / uses a new self-signed certificate – Unzip the file with everything you need (KIT PRE-EXISTING available to Deploy NAV on AZURE), put in the default example “C:\Certificates\Initialize\Initialize\”
Initialize Standard.ZIP File
This file has been modified to the case: “Self-Signed Certificate tested on iPad App” (was commented on what is not needed in our test case environment and changed the parameters) Open the file with Powershell ISE as administrator (Run as administrator) and check the settings and make changes if necessary.
SCRIPT: InstallCert.ps1 , SCRIPT : “Certificate.Ps1”
Download Powershell Scripts Form here: POWERSHELL FILES CERTIFICATE or from my GITHUB Branch “Self-Signed-Certificate” https://github.com/rstefanetti/Powershell/tree/Self-Signed-Certificate
“POWERSHELL ISE” SAMPLES SCREENS
STEP 4: Running the file “InstallCert.ps1”
- From line to line with F8 (debug) in powershell ISE so if there are errors you can understand and correct, or run the entire script with F5 if you are unsure.
STEP 5: INPUT PARAMETERS Two parameters are requested:
- The first (Default Login)
-The second: (NAV Server: press enter taking one proposed)
The script stops and restarts the services, once finished, take the certificate and send it on iPad (example à send to email) STEP 6: INSTALLATION CERTIFICATE ON IPAD -Click on the file in the mail and follow the installation procedure on Ipad. STEP 7: LAUNCH DYNAMICS NAV APP -Finished open “Dynamics NAV App” and enter the address
“To Run” Dynamics NAV Ipad App
- Download Ipad App : Dynamics NAV from App Store
<li><b>Install Certificate on Ipad (Double Click on .CER File)</b><strong> </strong></li>
<li>Run Ipad App and set <strong>NAV Server Link</strong> : <strong>EXAMPLE </strong><a href="https://navserver.cloudapp.net/DynamicsNAV80/WebClient">https://navserver.cloudapp.net/DynamicsNAV80/WebClient</a></li>
<li>Insert username e password User: NAV (DOMAIN\User) PWD: PasswordBINGO !</li>
BINGO ! …. Have a nice Day !
L’ha ribloggato su Roberto Stefanetti NAV Blog.
Pingback: Powershell Script to create a “Self-Signed Certificate” that works on Dynamics NAV Ipad APP - Roberto Stefanetti BLOG - Dynamics User Group
Pingback: Best Posts/Hints for 2015 | Roberto Stefanetti NAV Blog