JotForm API error: Could not create SSL/TLS secure channel

  • Vconnect
    Asked on July 13, 2018 at 5:53 AM

    When I am passing formid in jotform api is throwing error "The request was aborted: Could not create SSL/TLS secure channel."

    I am using Jot Form in our scheduler to get jot form data.

    1531475700Untitled Screenshot 10

  • SnowSystems
    Replied on July 19, 2018 at 3:20 PM

     

    I had this problem also. The c# code on github targets framework 4.0 and it appears as if the api requires you to use TLS1.2. The problem is .net framework 4.0 does not directly support TLS1.2. You can either change it to .net 4.6+ or Make sure .net 4.6 is installed and then change the jotform Test class as follow

    Example 01

    https://github.com/jotform/jotform-api-csharp

    Example 02

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using JotForm;

    using Newtonsoft.Json;

    using Newtonsoft.Json.Linq;

    using System.Net;

     

    namespace JotFormTest

    {

        class Program

        {

     

           static void Main(string[] args)

            {

                 ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

                var client = new JotForm.APIClient("Your Api Key");

                // If your account is in Eu Protected mode, set euProtected to true.

                // client.euProtected = false; 

                // Print new submission id

                var user = client.getUser();

                var submissions = client.getSubmissions()["content"];

    Example 03

    Where I found the answer

    https://stackoverflow.com/questions/33761919/tls-1-2-in-net-framework-4-0

     

  • DonaldHag
    Replied on July 19, 2018 at 4:29 PM

    As SnowSystems mentions above updating to TLS1.2 on the platform you are developing for should solve the issue. For further assistance, do let us know.


  • SnowSystems
    Replied on July 19, 2018 at 6:03 PM

    What would be helpful in the future is to update the GitHub project to target a compatible version of the .net framework.

  • j_keil
    Replied on July 19, 2018 at 10:23 PM

    We also had the same issue suddenly stared happening from 3 July 2018 for application developed in .net 4.5

    Updating either environment or code to use TLS1.2 fixed the issue.

    Interesting enough this error appears inconsistently. For some request it succeeded and for other not. Is this caused on which internal JotForm server served the request???


  • Kiran Support Team Lead
    Replied on July 20, 2018 at 2:25 AM

    Please note that this was a recent change to use TLS 1.2 which has caused some issue. We are sorry for the inconvenience this may have caused. 

    @j_keil,

    If you are still experiencing any issue with the APIs, we request you to open a new thread on the support forum so that we can assist you. Alternatively, you may also send an email to api@jotform.com so that our concerned team can look into it.

    Thank you!