The request was aborted: Could not create SSL/TLS secure channel.

petrs@kentico.com[email protected] Eindhoven, NLMember, Administrator, Kentico Staff admin
edited May 2017 in Back-end Development

If you're using Kentico Cloud Delivery API in a .NET application you may run into the following error:

The request was aborted: Could not create SSL/TLS secure channel.

The error is caused by recent upgrades of our delivery API network provider and it can be solved either by configuring your application to support TLS (by modifying your Startup class):

public partial class Startup
{
    public void Configuration(IAppBuilder app)
    {
        ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; 
    }
}

or by changing supported runtime to 4.6.1 or newer in your config file:

Sign In or Register to comment.