Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Self signed certs via Powershell

Posted on by Microsoft Employee

Hey all, 

Diving deeper into the book 'Extending Microsoft Dynamics NAV 2016' from Packt today. 

At this point I'm looking for the directory that would contain or a way to acquire the cmdlet:

New-SelfSignedCertificateEx.ps1
AND\OR
New-NavSelfSignedCertificate.ps1

the book tells me to navigate to the directory or folder where I saved New-SelfSignedCertificateEx.ps1 but I didn't save that anywhere explicitly. 

I'm working off a current install of NAV 2016 with Windows Framework 4.0

I found this article to assist but I'm still missing the cmdlet in question: https://msdn.microsoft.com/en-us/dynamics-nav/how-to--create-a-self-signed-security-certificate-using-powershell-script


Found another article going through the same thing and I get stuck at this step:

At the command prompt, import the PowerShell module by typing the following command: Import-Module <dvddir>\\WindowsPowerShellScripts\NAVCertificateAdministration\NAVCertificateAdministration.psm1 or a path equivalent to where your PowerShell module is located.


I don't see NAVCertificateAdministration\NAVCertificateAdministration.psm1 anywhere.

I've tried importing all the modules I can find in the DynamicsNAV\90 folder and still no New-SelfSignedCertificateEx.ps1 or anything else cert related.

Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Microsoft.Dynamics.Nav.Model.Tools.psd1' -WarningAction SilentlyContinue | out-null

Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Management.psd1' -WarningAction SilentlyContinue | out-null

Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\Microsoft.Dynamics.Nav.Apps.Tools.psd1' -WarningAction SilentlyContinue | out-null

And


Import-Module 'C:\Program Files\Microsoft Dynamics NAV\90\Service\NavAdminTool.ps1' -WarningAction SilentlyContinue | out-null

Import-Module 'C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Management.psm1' -WarningAction SilentlyContinue | out-null

Import-Module 'C:\Program Files\Microsoft Dynamics NAV\90\Service\Microsoft.Dynamics.Nav.Apps.Management.psd1' -WarningAction SilentlyContinue | out-null

I'm cross referencing with the book 'Mastering Microsoft Dynamics NAV 2016' as well trying to get things configured correctly. 

I'd be happy to provide more details if needed. 

Thanks, 

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Self signed certs via Powershell

    Answered my own question ha!

    I'll leave this up in case others have trouble.

    NAVCertificateAdministration was in the WindowsPowerShellScripts folder of the installation media.

    Here for me:

    \\\Navision 2016\NAV9_Demo\WindowsPowerShellScripts\NAVCertificateAdministration

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans