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

Hi,

Would you help me how to solve the “The request was aborted: Could not create SSL/TLS secure channel.” issue in OKTA

Today OKTA Account created and Generate Token with Admin Privileges

Hey @praveenvidokta!

Where are you seeing this error? Are you using one of our SDKs or integrations? What programing language are you using?

yes iam using OKTA SDK, recently create new developer account and create token, i’m getting The request was aborted: Could not create SSL/TLS secure channel issue for new Account also

using c# language with OKTA SDK(OKTA.core.dll version 0.3.2.0)
while create user we getting the issue
below is my code
string Apikey = “*************";
string ApiUrl = "
”;
var oktaClient = new OktaClient(Apikey, new Uri(ApiUrl));

            var usersClient = oktaClient.GetUsersClient();
            var CurrentUser = usersClient.Add(user);

            return CurrentUser.Id; 

would u help me how to solve this issue

This error means that a network connection could not be established. You should check that:

  • You are using the latest SDK version: 0.3.3 at this time
  • Your ApiUrl is correct (should be https://{yourOktaDomain}, no -admin in the URL)

If you’ve checked those and still have problems, let us know what version of Windows, .NET Framework, and Visual Studio you are using. Older versions have trouble with TLS 1.2 connections, which the Okta API requires.

Thanks for information.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.