Skip to main content

Notifications

Business Central forum
Suggested answer

Dynamics 365 Business Central - SSL Certificate issue

editSubscribe (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.
 
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 10,155 User Group Leader on at
    Dynamics 365 Business Central - SSL Certificate issue
  • Suggested answer
    Judy Profile Picture
    Judy 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
    Becks 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
    Judy 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
    tanya07 1,523 on at
    Dynamics 365 Business Central - SSL Certificate issue
    Hi,
     
    Did you restarted the service after attaching the certificate ?
     
    BR,
    Tanya
     
  • gdrenteria Profile Picture
    gdrenteria 3,108 Super User on at
    Dynamics 365 Business Central - SSL Certificate issue
    Hi
    I hope this can help you
    Best regards
    Gerardo

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans