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
  • If I do a HEAD request, I get a response. Also I get a 503 Error if I change the URL Path. So this seems to work. now is the question how to download the content.

    HTTP/1.1 200 OK

    Server: awselb/2.0

    Date: Fri, 15 Jan 2021 15:15:58 GMT

    Content-Type: text/csv; charset=utf-8

    Content-Length: 0

    Connection: keep-alive

    etag: W/"10c3-H17P8ulLBfQxnRd+jSKR4RP6v3U"

    access-control-allow-origin: *

    x-powered-by: Express

Children
Related