Problem using PowerShell Create NAVServerInstance in 2013 R2
wjhorng
Member Posts: 15
Hi,
I got problem using PowerShell to Create NAVServerInstance in 2013 R2 for ServicesCertificateThumbprint.
When I use the following PowerShell to create new NAVServerInstance
/***
New-NAVServerInstance -ServerInstance A0031 -DatabaseName A0031 -DatabaseServer NAVLAB03
-ManagementServicesPort 8245 -ClientServicesPort 8246 -ODataServicesPort 8248 -SOAPServicesPort 8247
-ServiceAccount 'User' -ServiceAccountCredential $credential
-ClientServicesCredentialType UserName
-ServicesCertificateThumbprint "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc"
****/
The ServerInstance can not be started due to Powershell remove space in ServicesCertificateThumbprint value (replace from "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc" to "9e4d600c4dae7642cb4084a30199e7049465eecc" )
Can anyone know how can resolve the problem?
Thanks.
Best Regard,
Jin
I got problem using PowerShell to Create NAVServerInstance in 2013 R2 for ServicesCertificateThumbprint.
When I use the following PowerShell to create new NAVServerInstance
/***
New-NAVServerInstance -ServerInstance A0031 -DatabaseName A0031 -DatabaseServer NAVLAB03
-ManagementServicesPort 8245 -ClientServicesPort 8246 -ODataServicesPort 8248 -SOAPServicesPort 8247
-ServiceAccount 'User' -ServiceAccountCredential $credential
-ClientServicesCredentialType UserName
-ServicesCertificateThumbprint "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc"
****/
The ServerInstance can not be started due to Powershell remove space in ServicesCertificateThumbprint value (replace from "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc" to "9e4d600c4dae7642cb4084a30199e7049465eecc" )
Can anyone know how can resolve the problem?
Thanks.
Best Regard,
Jin
0
Comments
-
You don't want any spaces in your thumbprint. You should also be sure there are no hidden Unicode characters within the thumbprint value. That can happen if you copy and paste the value from the certificate. The best way to be sure is to type in the thumbprint manually, but you can also paste it into Notepad and then save the file as ANSI to clear them out that way.
Ben0 -
Hi Ben:
My problem is I need space in thumbprint value. The status is if I type ServicesCertificateThumbprint "9e 4d 60 0c 4d ae 76 42 cb 40 84 a3 01 99 e7 04 94 65 ee cc" manually. It works. But if I use Power Shell command. The space is removed. it does not work. Thanks.
Best Regard,
Jin Hung0 -
If you have the certificate in a file then you shold be able to do the following
$certificate = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$certificate.Import($CertificateFilePath)
and added to your code
New-NAVServerInstance -ServerInstance A0031 -DatabaseName A0031 -DatabaseServer NAVLAB03
-ManagementServicesPort 8245 -ClientServicesPort 8246 -ODataServicesPort 8248 -SOAPServicesPort 8247
-ServiceAccount 'User' -ServiceAccountCredential $credential
-ClientServicesCredentialType UserName
-ServicesCertificateThumbprint $certificate.ThumbprintEric Beran
Software Design Engineer II
Dynamics NAV Office 365
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.0 -
You can easily copy the thumbprint from powershell.
Just run the commandGet-ChildItem -Path Cert:\localmachine\My
and copy the relevant thumbprint.0 -
Hi Beran/Tlist:
I have tried your method. There is no space in the Certificate Thumbprint value.
Then I can not start the NAV instance.
If I use NAV Administrator Tools to modify Certificate Thumbprint by add space.
Then it works. (as the attachment).
Can anyone help me? How can I do to resolve it?
Thanks so much.
Best Regard,
Jin0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
