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

Web Service Calls over https with On Premise Business Central

(0) ShareShare
ReportReport
Posted on by 450

Hi there,

I don't know if this is the correct place to ask butn currently we are using Business Central 14  on our server and have some webservices in it. Now at it seems if I want to query those webservices this connection goes over and http connection. Now my question is fairly simple but the solution might not be. I was wondering how do make sure this goes over a secure connection (https)?

There was told to me that the service has a SSL certificate but I'm unsure on how I should implement this in a way so that making the query call goes over the secured connection.

Thanks in advance.

I have the same question (0)
  • Suggested answer
    Mohamad Vajid Profile Picture
    on at
    RE: Web Service Calls over https with On Premise Business Central

    Hello. Yes, it's OK to ask this question here in the forums.

    You must configure your Business Central server instance with a certificate first before you can access web services over HTTPS.

    You can follow this article that explains the process:

    docs.microsoft.com/.../implement-security-certificates-production-environment

    Essentially, you need a certificate before you can enable the SSL checkbox on SOAP and OData services.

  • InsertX Profile Picture
    450 on at
    RE: Web Service Calls over https with On Premise Business Central

    Thanks fro your reponse. I managed to set up so that it will use SSL now I'm running into the issue that: I have 2 certificates, one of them is expired since it was one for last year and the other one is valid for the current year. I put the thumbprint of the new certificate into the "Certificate Thumbprint" field in my service settings but somehow every time i try to pull my query it says that the certificate it not valid anymore and displays the date of the previous certificate.

    UPDATE: I deleted the old certificate but unfortunately he's still using that one.

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at
    RE: Web Service Calls over https with On Premise Business Central

    Did you restart the service?

  • InsertX Profile Picture
    450 on at
    RE: Web Service Calls over https with On Premise Business Central

    Yes I did, I filled in the thumbprint, enabled the SSL option and entered the base URL and restarted the service but doesn't seem to help. Our Infrastructure department told me that the certificate is fine so that it might have something to do with the thumbprint but aside from entering it into the field in the service settings (and it's correctly entered I checked multiple times) I can't imagine where else I would have to enter it.

    And the previous certificate is deleted so at this point I'm out of idea's.

  • Suggested answer
    Mohamad Vajid Profile Picture
    on at
    RE: Web Service Calls over https with On Premise Business Central

    Do you get any errors when starting the service? Are there any errors in the Application log?

    It sounds like your old certificate is bound to the http urlacl which you may need to delete first before you can bind the new certificate to the web services port.
    Here is an old article which still applies, see "Configuring the Access Control List and the Web Services Ports for SSL"
    https://community.dynamics.com/nav/b/technicaltipsandtricksfordynamicsnav/posts/configuring-web-services-to-use-ssl-soap-and-odata

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,202

#2
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,248

#3
Sumit Singh Profile Picture

Sumit Singh 2,893

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans