This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSTUDIO-TM4X: Requesting HTTPS with local server

Part Number: CCSTUDIO-TM4X

Hi,
We are using TM4C1294XL launchpad with CCS V6, TI-RTOS V2.16
We had done with requesting the HTTP/HTTPS    POST/GET  with TI-RTOS to "www.example.com"  of port 80 for http and 443 for https via Ethernet. And in the  similar way we are trying for our local server http was get success but for the https connection was getting fail.
We are included the CEART certificate which are directed to use in the Resource explorer examples, is these certificates are OK to use for my local server  or is it needs any certificate from the respective server to which we are trying to request.
Please clarify us how to request an HTTPS to local server and what about certificates. And one more thing My tiva device and local server are connected to the same server for internet.

Regards,
Raghu DS

  • Hi,
    We are just tried with our local serve in a way, We get one certificate from our server, it has the
    1) Certificate &
    2) Private Key. Both are buffers
    So, we added

    uint8_t cert = "Certificate ";
    uint32_t certlen = sizeof(cert);
    uint8_t key = "Private Key";
    uint32_t key en = sizeof(key );

    And before creating I was assaigning tls params
    tlsParams.cert = cert;
    tlsParams.certlen = certlen;
    tlsParams.key = key;
    tlsParams.keylen = keylen;

    By this I was getting an ERROR, TLS Failed to create. So I tried by adding the old "ca" certificate including the above also and getting the same error.
    Even I tried by enabling ca or cert or key one at a time and also two at a time and getting the same error , TLS Failed to create.
    Please help us to resolve our issue.

    Regards,
    Raghu DS
  • Hi Raghu,

    For HTTPS communication client to server, you would need to provide the server's Root CA certificate (some server need client to send Client certificate. I am not sure of your server's requirements). Root CA certificate is the certificate that is used to sign the server's certificate. Can you load the root CA for the server? You don't need the key.

    Vikram