Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Dynamics 365 Business Central - SSL Certificate issue

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 17,959 Super User 2024 Season 2 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,554 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 10,951 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans