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.

RTOS/MSP-EXP432E401Y: httpsget example not working

Part Number: MSP-EXP432E401Y


Tool/software: TI-RTOS

I am using the SimpleLink SDK version 2.30.0.14 with the MSP-EXP432E401Y. I have been trying to get the httpsget example working but to no avail. These are the steps I am taking:

  1. Import httpsget example project into CCS. The project is found in <sdk_installation_folder>/simplelink_msp432e4_sdk_2_30_00_14/examples/rtos/MSP_EXP432E401Y/ns/httpsget.
  2. Navigate to the certs folder and insert the following code in certificate.h in place of the existing "ca" array: 
    uint8_t ca[] =
        "-----BEGIN CERTIFICATE-----\r\n"
        "MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBs\r\n"
        "MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3\r\n"
        "d3cuZGlnaWNlcnQuY29tMSswKQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5j\r\n"
        "ZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAwMFoXDTMxMTExMDAwMDAwMFowbDEL\r\n"
        "MAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZMBcGA1UECxMQd3d3\r\n"
        "LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFuY2Ug\r\n"
        "RVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm\r\n"
        "+9S75S0tMqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTW\r\n"
        "PNt0OKRKzE0lgvdKpVMSOO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEM\r\n"
        "xChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFB\r\n"
        "Ik5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQNAQTXKFx01p8VdteZOE3\r\n"
        "hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUeh10aUAsg\r\n"
        "EsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQF\r\n"
        "MAMBAf8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaA\r\n"
        "FLE+w2kD+L9HAdSYJhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3Nec\r\n"
        "nzyIZgYIVyHbIUf4KmeqvxgydkAQV8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6z\r\n"
        "eM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFpmyPInngiK3BD41VHMWEZ71jF\r\n"
        "hS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkKmNEVX58Svnw2\r\n"
        "Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe\r\n"
        "vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep\r\n"
        "+OkuE6N36B9K\r\n"
        "-----END CERTIFICATE-----";

  3. Flash the board with the code.
  4. Output is the following: 
    Service Status: DHCPC    : Enabled  :          : 000
    
    Service Status: DHCPC    : Enabled  : Running  : 000
    
    Network Added: 
    If-1:192.168.1.80
    
    Service Status: DHCPC    : Enabled  : Running  : 017
    
    startSNTP: Current time: Wed Oct 17 19:04:16 2018
    
    
    Loading certificate
    Sending a HTTP GET request to 'https://www.example.com'
    
    Error! code = -2006, desc = httpsTask: connect failed
    

I am getting the contents of the certificate from the following site: 

www.tbs-certificates.co.uk/.../DigiCert_High_Assurance_EV_Root_CA.html

It is the same link provided in the README.html included in the project files. I don't know if I have entered the certificate correctly but I can't find where the error is. Running the same program except using HTTP results in the same error code, however, connecting to https://www.google.com instead results in a -2021 error code. I use this same board and network setup on another program that uses plain HTTP and it is able to connect to the host and send requests(albeit with some header issues) so I don't think it is a network problem.

Help would be appreciated. Thanks.

**Attention** This is a public forum