This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

1NCE Onboarding SIM Card

Hi,

I try to do the Onboarding workflow for 1NCE SIM Cards with the NRF91 Module: 1nce.com/.../

So the solution is to send a GET Request to a special endpoint and you get all your certificates. At the moment I´m confused. In the documentation it says you need to access the endpoint via HTTPS. If I do so, the server answers:


GOT HTTP/1.1 400 Bad Request
Server: awselb/2.0
Date: Thu, 14 Jan 2021 20:48:00 GMT
Content-Type: text/html
Content-Length: 220
Connection: close
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
</body>
</html>

So what could be the solution? There is nothing about any certificate in the documentation. My Code is a modified one from the "https_client" sample.

https://pastebin.com/yuTTaD4k

Thanks for your help end best regards.

Parents Reply
  • danielboe said:
    So if the range header is not supportet on the server side there is no way to get the Content? 

     It is possible to run the TLS stack on the application side. In that case, you could set the TLS buffer size as large as you want.

    This is supported in the serial_lte_modem if you want to see how it can be done.

    But, this will come with a significant flash and RAM cost.

    Another option would be to try to convince 1nce to add support for partial content requests or add more API calls to get each key by itself (assuming each individual key is small enough).

    Other than those options, I don't know of any other way.

Children
Related