Skip to main content
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.
 
Attachments
  • 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 2,788 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

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 222,689 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans