web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,332 Super User 2025 Season 2 on at
    Dynamics 365 Business Central - SSL Certificate issue
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Dynamics 365 Business Central - SSL Certificate issue
    Please refer to the following document regarding the same error to see if it can help:
     
     
     
  • Becks Profile Picture
    4 on at
    Dynamics 365 Business Central - SSL Certificate issue
    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/.
  • Judy Profile Picture
    Microsoft Employee on at
    Dynamics 365 Business Central - SSL Certificate issue
    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.
  • Suggested answer
    tanya07 Profile Picture
    1,638 on at
    Dynamics 365 Business Central - SSL Certificate issue
    Hi,
     
    Did you restarted the service after attaching the certificate ?
     
    BR,
    Tanya
     
  • Gerardo Rentería García Profile Picture
    23,446 Most Valuable Professional on at
    Dynamics 365 Business Central - SSL Certificate issue
    Hi
    I hope this can help you
    Best regards
    Gerardo

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,152

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,944

#3
Sohail Ahmed Profile Picture

Sohail Ahmed 2,444 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans