Skip to main content

Notifications

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

Error Could not create SSL/TLS secure channel on SaaS

Posted on by 110

Hello,

I'm trying to call API services from AL on Business Cenrtral, when I deploy on OnPremise Docker container works correctely, but when I deploy to SaaS I get the error "Could not create SSL/TLS secure channel". The code is:

var
Client: HttpClient;
Request: HttpRequestMessage;
Content: HttpContent;
Response: HttpResponseMessage;
RequestHeaders: HttpHeaders;
ContentString: Text;
ResponseString: Text;

begin
Clear(Client);

Request.SetRequestUri('https:');
Request.Method := 'GET';

Request.GetHeaders(RequestHeaders);
RequestHeaders.Clear();
RequestHeaders.Add('Authorization', '');

Client.Send(Request, Response);

Response.Content.ReadAs(ResponseString);
Message(Format(Response.HttpStatusCode));
Message(ResponseString);
end;

The message error:

pastedimage1673512075312v1.png

Thanks

  • Suggested answer
    Ayala Profile Picture
    Ayala 110 on at
    RE: Error Could not create SSL/TLS secure channel on SaaS

    Hello Davy,

    The problem is on the outside endpoint, it must use cipher suites supported from Business Central. Review this on next link

    learn.microsoft.com/.../devenv-supported-cipher-suites

    I hope this will help you

  • Raymond Roesink Profile Picture
    Raymond Roesink 24 on at
    RE: Error Could not create SSL/TLS secure channel on SaaS

    Hi Ayala,

    Did you happen to find a solution?

    We're having the same issue.

    Kind Regards,

    Davy

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Error Could not create SSL/TLS secure channel on SaaS

    Hello,

    Please raise a ticket to Microsoft.

    Thank you.

  • Ayala Profile Picture
    Ayala 110 on at
    RE: Error Could not create SSL/TLS secure channel on SaaS

    Hello,

    IF external Endpoint use a SSL Certificate and has activated TSL 1.3 it works. But if TSL active is 1.2 or lower doesn't work.It only happens on SaaS environments, OnPremise doesn't happens.

    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,151 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans