web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Dynamics 365 Business Central - SSL Certificate issue

(1) ShareShare
ReportReport
Posted on by 4
Hi,
we have an on prem Microsoft Dynamics 365 Business Central server with several configurations.
 
Recently when we updated the SSL cert through Business Central Admin and all worked fine except for one config. The cert contains the private key, we have given the service user access to the private key and the cert is in the correct place /Local Computer//Personal//Certificates/.
 
The system give the error shown below. 
 -----------------------------------------
Set-NAVServerConfiguration : Running the command 'http add sslcert ipport=0.0.0.0:7148 certhash=xxxxxxxxxxxxx appid=/{00112233-4455-6677-8899-aabbccddeeff}/' failed. Output message: 'SSL Certificate add failed,
Error: 1312
A specified logon session does not exist. It may already have been terminated.
'. Error message: ''. Process exit code: '1'.
-----------------------------------------
 
Strange thing is if we run the following from command prompt it updates the cert for the given port, but the system don't update the config in Business Central Admin and the service won't start.
-------------------------------------------
netsh http add sslcert ipport=0.0.0.0:7148 certhash=xxxxxxxxxxxxxx appid={00112233-4455-6677-8899-aabbccddeeff}
-------------------------------------------
 
Any advise would be appreciated.
 
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    25,154 Most Valuable Professional on at
    Hi
    I hope this can help you
    Best regards
    Gerardo
  • Suggested answer
    tanya07 Profile Picture
    1,638 on at
    Hi,
     
    Did you restarted the service after attaching the certificate ?
     
    BR,
    Tanya
     
  • Judy Profile Picture
    Microsoft Employee on at
    Hi, If you are getting Error Code 1312, you can determine if the certificate you imported contains the private key by looking at its icon in MMC.
  • Becks Profile Picture
    4 on at
    Thanks for all the suggestions, but it is not a certificate issue as we use it on several other servers without problem. Also, the service is restarted several times and so is the server.
     
    As mentioned in the first post, the cert contains the private key, we have given the service user access to the private key and the cert is in the correct place /Local Computer//Personal//Certificates/.
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Please refer to the following document regarding the same error to see if it can help:
     
     
     
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans